freenode

← CVE tracker

CVE-2026-129948

Contentlayer @contentlayer/source-files through 0.3.4 Code Injection via JavaScript Frontmatter

Severity
high CVSS 8.7 (v4.0)
Affects
@contentlayer/source-files · contentlayerdev
Weakness
CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
Published
16 November 2026 by VulnCheck
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.

Our coverage

We have not written about this one. Know why it matters? Send a tip.