CVE-2026-129947 Contentlayer @contentlayer/core through 0.3.4 Code Injection via Generated _index.mjs
HighCVSS 8.6
EPSS 0.51%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
Description
Contentlayer @contentlayer/core through 0.3.4 contains a code injection vulnerability that allows attackers to inject JavaScript by embedding single quotes in content file names. Attackers can add a content file whose name breaks out of the import specifier in makeDataExportFile(), executing injected code when contentlayer dev or a Next.js dev server imports the generated module.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| contentlayer @contentlayer/core | <= 0.3.4 | after 0.3.4 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| contentlayer @contentlayer/core | <= 0.3.4 | No fix listed |
References
- github.com issue-tracking
- github.com technical-description
- VulnCheck Advisory: Contentlayer @contentlayer/core through 0.3.4 Code Injection via Generated _index.mjs third-party-advisory
- ENISA EUVD EUVD-2026-126424 third-party-advisory