CVE-2026-129947
High 8.6No known exploitationFix status unknownContentlayer @contentlayer/core through 0.3.4 Code Injection via Generated _index.mjs
Record last updated
CVSS score
High on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 20% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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.
Weakness: CWE-94
Patching and mitigation
- Patch status
- Unknown: no source documents a fix
- Mitigation
- None documented
- Vendor guidance
- No vendor link on record
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| contentlayerdev | @contentlayer/core | all versions up to and including 0.3.4 | Not documented | CVE Program |
Timeline
Disclosure
CVE record published by VulnCheck
Source: CVE Program (opens in a new tab)
Vendor guidance and references
- https://github.com/contentlayerdev/contentlayer/blob/v0.3.4/packages/@contentlayer/core/src/generation/generate-dotpkg.ts (opens in a new tab)technical-description
- https://github.com/contentlayerdev/contentlayer/issues/688 (opens in a new tab)issue-tracking
- VulnCheck Advisory: Contentlayer @contentlayer/core through 0.3.4 Code Injection via Generated _index.mjs (opens in a new tab)third-party-advisory