CVE-2026-129948 PUBLISHED

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

Assigner: VulnCheck
Reserved: 16.11.2026 Published: 16.11.2026 Updated: 16.11.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS Score: 8.7

Product Status

Vendor contentlayerdev
Product @contentlayer/source-files
Versions Default: unaffected
  • affected from 0 to 0.3.4 (incl.)

Credits

  • Ikram-4 finder

References

Problem Types

  • Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') CWE