{"vuln_id":"CVE-2026-129947","aliases":[],"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.","published_at":"2026-11-16T15:17:29.770000Z","modified_at":"2026-11-18T15:17:40.633000Z","first_seen_at":"2026-11-21T19:15:49.060277Z","severity":"high","severity_source":"nvd","cvss_score":8.6,"cvss_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","cwe":["CWE-94"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00269,"epss_percentile":0.19335,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-129947"},"matched_alias":null,"items":[{"id":6161,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-129947: Contentlayer @contentlayer/core through 0.3.4 contains a code injection vulnerability that allows attackers to inject JavaScript by embedding single quotes in…","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.\n\nReferences:\nhttps://github.com/contentlayerdev/contentlayer/blob/v0.3.4/packages/@contentlayer/core/src/generation/generate-dotpkg.ts#L377-L379\nhttps://github.com/contentlayerdev/contentlayer/blob/v0.3.4/packages/@contentlayer/core/src/generation/generate-dotpkg.ts#L511\nhttps://github.com/contentlayerdev/contentlayer/issues/688\nhttps://www.vulncheck.com/advisories/contentlayer-contentlayer-core-through-0.3.4-code-injection-via-generated-index-mjs","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129947","published_at":"2026-11-16T15:17:29.770000Z","updated_at":"2026-11-18T15:17:40.633000Z","fetched_at":"2026-11-21T19:15:31.481919Z","severity":"high","cvss_score":8.6,"epss":0.00269,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-129947","vuln_ids":["CVE-2026-129947"],"tags":["CWE-94"],"cluster_id":6753,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/6161","html":"https://vulnwatch.ve1ve2.com/item/6161"}}]}