GHSA-qp9j-64hv-w35cHighCVSS 8.8
Contentlayer @contentlayer/source-files through 0.3.4 contains a code injection vulnerability...
🔗 CVE IDs covered (1)
📋 Description
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.
🔗 References (5)
- https://nvd.nist.gov/vuln/detail/CVE-2026-129948
- https://github.com/contentlayerdev/contentlayer/issues/688
- https://github.com/contentlayerdev/contentlayer/blob/v0.3.4/packages/@contentlayer/source-files/src/fetchData/makeCacheItemFromFilePath.ts#L221-L228
- https://www.vulncheck.com/advisories/contentlayer-contentlayer-source-files-through-0.3.4-code-injection-via-javascript-frontmatter
- https://github.com/advisories/GHSA-qp9j-64hv-w35c