High severity8.8NVD Advisory· Published Nov 16, 2026· Updated Nov 17, 2026
CVE-2026-129948
CVE-2026-129948
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.
Affected products
1- Range: <=0.3.4
Patches
Vulnerability mechanics
References
3- github.com/contentlayerdev/contentlayer/blob/v0.3.4/packages/@contentlayer/source-files/src/fetchData/makeCacheItemFromFilePath.tsnvd
- github.com/contentlayerdev/contentlayer/issues/688nvd
- www.vulncheck.com/advisories/contentlayer-contentlayer-source-files-through-0.3.4-code-injection-via-javascript-frontmatternvd
News mentions
0No linked articles in our index yet.