CVE-2026-129947

published 16 Nov 2026 · updated 18 Nov 2026

Contentlayer @contentlayer/core through 0.3.4 Code Injection via Generated _index.mjs

8.0HighCVSS 8.0EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
contentlayerdev<=0.3.4

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-129947 severity on Zeptric[![CVE-2026-129947](https://zeptric.io/badge/cve/CVE-2026-129947.svg)](https://zeptric.io/cve/CVE-2026-129947)