WhatCyber / Vulnerabilities / CVE-2026-129947
CVE-2026-129947
HIGH severity
CVE-2026-129947 is a publicly disclosed vulnerability recorded in the National Vulnerability Database (NVD). It is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Its CVSS base score is 8.0 (high). The EPSS model puts the chance of exploitation in the next 30 days at 0.3%.
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.
Key facts
- CVSS v3
- 8 (HIGH)
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- Published
- 2026-11-16
- Last modified
- 2026-11-18
- NVD status
- Received
Timeline
- November 16, 2026: Published in the NVD
Weaknesses (CWE)
References
- https://github.com/contentlayerdev/contentlayer/blob/v0.3.4/packages/@contentlayer/core/src/generation/generate-dotpkg.ts#L377-L379
- https://github.com/contentlayerdev/contentlayer/blob/v0.3.4/packages/@contentlayer/core/src/generation/generate-dotpkg.ts#L511
- https://github.com/contentlayerdev/contentlayer/issues/688
- https://www.vulncheck.com/advisories/contentlayer-contentlayer-core-through-0.3.4-code-injection-via-generated-index-mjs