๐Ÿ” CVE Alert

CVE-2026-129947

HIGH 8.0

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

CVSS Score
8.0
EPSS Score
0.3%
EPSS Percentile
19th

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.

CWE CWE-94
Vendor contentlayerdev
Product @contentlayer/core
Published Nov 16, 2026
Last Updated Nov 18, 2026
Stay Ahead of the Next One

Get instant alerts for contentlayerdev @contentlayer/core

Be the first to know when new high vulnerabilities affecting contentlayerdev @contentlayer/core are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Affected Versions

contentlayerdev / @contentlayer/core
0 โ‰ค 0.3.4

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/contentlayerdev/contentlayer/issues/688 github.com: https://github.com/contentlayerdev/contentlayer/blob/v0.3.4/packages/@contentlayer/core/src/generation/generate-dotpkg.ts#L377-L379 github.com: https://github.com/contentlayerdev/contentlayer/blob/v0.3.4/packages/@contentlayer/core/src/generation/generate-dotpkg.ts#L511 vulncheck.com: https://www.vulncheck.com/advisories/contentlayer-contentlayer-core-through-0.3.4-code-injection-via-generated-index-mjs

Credits

Ikram-4