Skip to content

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

HighCVSS 8.7 EPSS 0.63%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
contentlayer @contentlayer/source-files <= 0.3.4 after 0.3.4 Fixed

Affected products

ProductAffected versionsFixed in
contentlayer @contentlayer/source-files <= 0.3.4 No fix listed

References