All vulnerabilities

npm

CVE-2026-129948

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

Severity
High 8.7
Published
16 Nov 2026
Last changed
17 Nov 2026
Added to UpHeron
23 Nov 2026
Exploit chance
0.3% in the next 30 daysHigher than 27% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Eval injection (CWE-95)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
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
Sources
CVE Program

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.

From the CVE Program.

Affected software

SoftwareAffected versions
@contentlayer/source-filesnpm · osv:npm:@contentlayer/source-files
  • Every version up to 0.3.4

About @contentlayer/source-files

Weekly downloads (npm)
24,324npm, 23 Nov 2026

This is the only vulnerability in @contentlayer/source-files in our list.

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-129948