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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| contentlayer @contentlayer/source-files | <= 0.3.4 | after 0.3.4 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| contentlayer @contentlayer/source-files | <= 0.3.4 | No fix listed |
References
- github.com issue-tracking
- github.com technical-description
- VulnCheck Advisory: Contentlayer @contentlayer/source-files through 0.3.4 Code Injection via JavaScript Frontmatter third-party-advisory
- ENISA EUVD EUVD-2026-126423 third-party-advisory