Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › JavaScript

CVE-2026-129947 — contentlayerdev @contentlayer/core

High · CVSS 8.6EPSS 0.5% First seen November 16, 2026
JavaScriptReactWebVulnerabilities

Research article

Contentlayer Core Code Injection Vulnerability in Contentlayer ≤ 0.3.4

CVECVE-2026-129947
Vendor and productcontentlayerdev @contentlayer/core
PublishedNovember 24, 2026 10:55 UTC
Research cut-offNovember 24, 2026 10:00 UTC
Sources reviewed3: 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 IDVendorProductCWECVSS 4.0CVSS 3.1PublishedLast ModifiedRecord Status
CVE-2026-129947contentlayerdev@contentlayer/coreCWE-948.6 HIGH, scored by disclosure@vulncheck.com (Secondary)8.0 HIGH, scored by disclosure@vulncheck.com (Secondary)2026-11-16T15:17:292026-11-18T15:17:40Received

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 ProductFixed Version
contentlayerdev @contentlayer/corenot 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

  1. Monitor for future advisories and ensure you are using the latest available version of the product.
  2. Check if your installed version of Contentlayer @contentlayer/core is ≤ 0.3.4 [1].
  3. 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

  1. 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. Vulnerability identification, Vulnerability description, Attack surface and exploitation prerequisites, Impact analysis, Affected products and versions, Remediation
  2. 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. Exploitation and threat intelligence status
  3. 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. Exploitation and threat intelligence status

Written with AI assistance from the 3 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

High · 8.6 CVSS 4.0 base score 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.

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

Vector CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X · CVSS 3.1 8.0 from the CNA (vulncheck.com): CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Affected and fixed versions

ProductAffected versionsFixed in
contentlayerdev @contentlayer/core≤ 0.3.4—

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Other references

Details from NVD (public domain).

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