CVE-2026-129948 Contentlayer @contentlayer/source-files through 0.3.4 Code Injection via JavaScript Frontmatter
설명
Contentlayer @contentlayer/source-files through 0.3.4 contains a code injection vulnerability that allows attackers who control content files to execute JavaScript by abusing gray-matter's still-enabled JavaScript engine in parseMarkdown(). Attackers can start a Markdown or MDX file with a ---js or ---javascript frontmatter delimiter to run code during build, exposing CI build secrets.
영향 받는 제품 제품 1개
-
contentlayerdev
@contentlayer/source-files
영향 받는 버전
- 0.3.4 이하
해결 버전
해결된 버전 정보가 없습니다.
참고 자료 3건
- github.com https://github.com/contentlayerdev/contentlayer/blob/v0.3.4/packages/@contentlayer/source-files/src/fetchData/makeCacheItemFromFilePath.ts#L221-L228 (새 창)
- github.com https://github.com/contentlayerdev/contentlayer/issues/688 (새 창)
- vulncheck.com https://www.vulncheck.com/advisories/contentlayer-contentlayer-source-files-through-0.3.4-code-injection-via-javascript-frontmatter (새 창)