HIGH 8.6 NVD
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 c
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.
References
- https://github.com/contentlayerdev/contentlayer/blob/v0.3.4/packages/@contentlayer/core/sr
- https://github.com/contentlayerdev/contentlayer/blob/v0.3.4/packages/@contentlayer/core/sr
- https://github.com/contentlayerdev/contentlayer/issues/688
- https://www.vulncheck.com/advisories/contentlayer-contentlayer-core-through-0.3.4-code-inj
This high severity vulnerability with a CVSS score of 8.6 was published on 2026-11-16 via NVD.
vulnfeed aggregates 21154 vulnerabilities from NVD, CISA KEV,
Ubuntu, Debian, Red Hat, Kubernetes, Exploit-DB, OSS-Security, GitHub and OpenStack — updated every 4 hours.