Vulnerability

CVE-2026-129948

highCVSS 4.0 8.7Published 16 Nov 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /contentlayerdev/contentlayer/blob/v0.3.4/packages/@content…
  • github.com /contentlayerdev/contentlayer/issues/688
  • www.vulncheck.com /advisories/contentlayer-contentlayer-source-files-through-…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning