High severity8.0NVD Advisory· Published Nov 16, 2026· Updated Nov 18, 2026
CVE-2026-129947
CVE-2026-129947
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
1- Range: <=0.3.4
Patches
Vulnerability mechanics
References
4- github.com/contentlayerdev/contentlayer/blob/v0.3.4/packages/@contentlayer/core/src/generation/generate-dotpkg.tsnvd
- github.com/contentlayerdev/contentlayer/blob/v0.3.4/packages/@contentlayer/core/src/generation/generate-dotpkg.tsnvd
- github.com/contentlayerdev/contentlayer/issues/688nvd
- www.vulncheck.com/advisories/contentlayer-contentlayer-core-through-0.3.4-code-injection-via-generated-index-mjsnvd
News mentions
0No linked articles in our index yet.