cvelo
P2 · HighCVSS 8.8EPSS 0.4%

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

  • CVE-2026-129948
  • GHSA-qp9j-64hv-w35c
  • EUVD-2026-126423

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.

Text from the CVE.org record.

Recommendation

No source states a fixed version. Check the vendor advisory.

Affected

  • contentlayerdev @contentlayer/source-files

    Affected versionsFixed in
    up to 0.3.4none stated

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.