Home › CVE › JavaScript
CVE-2026-129947 — contentlayerdev @contentlayer/core
Research article
Contentlayer Core Code Injection Vulnerability in Contentlayer ≤ 0.3.4
| CVE | CVE-2026-129947 |
|---|---|
| Vendor and product | contentlayerdev @contentlayer/core |
| Published | November 24, 2026 10:55 UTC |
| Research cut-off | November 24, 2026 10:00 UTC |
| Sources reviewed | 3: NVD record (last modified 2026-11-18); CISA KEV catalog; FIRST EPSS (2026-11-23) |
Executive summary
CVE-2026-129947 affects Contentlayer @contentlayer/core versions up to 0.3.4, allowing attackers to inject JavaScript through malformed file names. The CVSS 3.1 score is 8.0 HIGH, scored by disclosure@vulncheck.com. The reviewed sources do not report exploitation. No fixed version is listed in the sources, so the sources give no update target [1].
Key points
- CVE-2026-129947 affects Contentlayer @contentlayer/core versions up to 0.3.4 [1].
- The CVSS 3.1 score is 8.0 HIGH, scored by disclosure@vulncheck.com (Secondary) [1].
- The reviewed sources do not report exploitation [2].
- The EPSS score for this CVE is 0.0027 (0.27%) [3].
- Readers should monitor for future advisories and ensure they are using the latest available version of the product.
Vulnerability identification
| CVE ID | Vendor | Product | CWE | CVSS 4.0 | CVSS 3.1 | Published | Last Modified | Record Status |
|---|---|---|---|---|---|---|---|---|
| CVE-2026-129947 | contentlayerdev | @contentlayer/core | CWE-94 | 8.6 HIGH, scored by disclosure@vulncheck.com (Secondary) | 8.0 HIGH, scored by disclosure@vulncheck.com (Secondary) | 2026-11-16T15:17:29 | 2026-11-18T15:17:40 | Received |
Vulnerability description
A vulnerability in Contentlayer @contentlayer/core versions up to 0.3.4 enables attackers to insert JavaScript through the use of single quotes in content file names. This enables the execution of injected code when the development server or a Next.js development server imports the generated module [1].
Attack surface and exploitation prerequisites
The vulnerability requires low privileges and user interaction. Attackers can add a content file with a crafted name, and the CVSS 3.1 vector rates the attack vector as network [1].
Impact analysis
The vulnerability has a high impact on confidentiality, integrity, and availability. Attackers can execute injected code, and the sources do not describe data theft as a consequence [1].
Affected products and versions
| Affected Product | Fixed Version |
|---|---|
| contentlayerdev @contentlayer/core | not listed |
Exploitation and threat intelligence status
CVE-2026-129947 is not listed in the CISA Known Exploited Vulnerabilities Catalog as of 2026-11-24 [2]. The estimated probability of exploitation in the next 30 days is 0.27%, with a percentile of 0.1931, according to the EPSS score [3].
Detection and exposure assessment
Users can assess their exposure by checking if their installed version of Contentlayer @contentlayer/core is at or below 0.3.4 [1].
Remediation
No fixed version has been listed for this CVE. Users should monitor for future advisories and ensure they are using the latest available version of the product.
Remediation checklist
- Monitor for future advisories and ensure you are using the latest available version of the product.
- Check if your installed version of Contentlayer @contentlayer/core is ≤ 0.3.4 [1].
- If a fixed version is released, update to the latest available version.
Evidence gaps
- The sources do not describe the affected component's internals.
- The sources do not mention a workaround.
- The sources do not provide a complete version range.
- The sources do not list a fixed version for this CVE.
- The sources do not report exploitation.
- The sources do not give indicators of compromise.
References
- CVE-2026-129947 record. NIST National Vulnerability Database (NVD), 2026-11-18. https://nvd.nist.gov/vuln/detail/CVE-2026-129947. Accessed 2026-11-24.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-24. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-24.
- EPSS score for CVE-2026-129947. FIRST, 2026-11-23. https://api.first.org/data/v1/epss?cve=CVE-2026-129947. Accessed 2026-11-24.
Summary
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.
Severity breakdown
High · 8.6
An attacker with a normal user account can exploit this over the network if a user views or visits something.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- yes, a normal user account
- User action needed
- yes, a user must view or visit something
- Impact
- high on confidentiality, integrity and availability
- Impact on other systems
- none
Weakness
- CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| contentlayerdev @contentlayer/core | ≤ 0.3.4 | — |
References by type
Other references
Affected
- contentlayerdev @contentlayer/core
Frequently asked questions
What is CVE-2026-129947?
CVE-2026-129947 affects Contentlayer @contentlayer/core versions up to 0.3.4, allowing attackers to inject JavaScript through malformed file names. The CVSS 3.1 score is 8.0 HIGH, scored by disclosure@vulncheck.com. The reviewed sources do not report exploitation. No fixed version is listed in the sources, so the sources give no update target. Weakness type: Improper Control of Generation of Code ('Code Injection') (CWE-94).
How severe is CVE-2026-129947?
CVE-2026-129947 has a CVSS 4.0 base score of 8.6 (high), from the CNA (vulncheck.com). An attacker with a normal user account can exploit this over the network if a user views or visits something.
Is CVE-2026-129947 being exploited?
Not as far as is known: CVE-2026-129947 is not in CISA's Known Exploited Vulnerabilities catalog as of November 26, 2026. EPSS estimates a 0.5% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-129947?
contentlayerdev @contentlayer/core ≤ 0.3.4.
How do I fix CVE-2026-129947?
Monitor for future advisories and ensure you are using the latest available version of the product. Check if your installed version of Contentlayer @contentlayer/core is ≤ 0.3.4. If a fixed version is released, update to the latest available version.
Timeline & sources
References
Related vulnerabilities & news
- React Library Vulnerable to Denial of Service via Specially Crafted HTTP Requests
- DreameHome Android App Allows Code Injection via Missing Integrity Check
- CVE-2026-131702 — NextScripts
- Canadian Cyber Centre Flags Unauthenticated Code Execution Flaw in React Versions Below 19.x Fixes
- CVE-2026-126187: Critical React Server Components RCE affects react-server-dom packages; upgrade to patched versions