CVE-2026-129947
JSON

8.6high

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

Severity
8.6high CVSS:4.0 by VulnCheck
Exploit likelihood
0.34% (higher than 29% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck

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.

Affected

Product or packageVersionsReported by
contentlayerdev @contentlayer/coreup to 0.3.4CVE List

All scores

VulnCheck8.6high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
VulnCheck8.0high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-94

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-129947 changed 2026-11-18CVE Terms of Use
NVDCVE-2026-129947 changed 2026-11-18Public domain