๐Ÿ” CVE Alert

CVE-2026-129948

HIGH 8.8

Contentlayer @contentlayer/source-files through 0.3.4 Code Injection via JavaScript Frontmatter

CVSS Score
8.8
EPSS Score
0.0%
EPSS Percentile
0th

Contentlayer @contentlayer/source-files through 0.3.4 contains a code injection vulnerability that allows attackers who control content files to execute JavaScript by abusing gray-matter's still-enabled JavaScript engine in parseMarkdown(). Attackers can start a Markdown or MDX file with a ---js or ---javascript frontmatter delimiter to run code during build, exposing CI build secrets.

CWE CWE-95
Vendor contentlayerdev
Product @contentlayer/source-files
Published Nov 16, 2026
Last Updated Nov 17, 2026
Stay Ahead of the Next One

Get instant alerts for contentlayerdev @contentlayer/source-files

Be the first to know when new high vulnerabilities affecting contentlayerdev @contentlayer/source-files 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:N/S:U/C:H/I:H/A:H
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Affected Versions

contentlayerdev / @contentlayer/source-files
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/source-files/src/fetchData/makeCacheItemFromFilePath.ts#L221-L228 vulncheck.com: https://www.vulncheck.com/advisories/contentlayer-contentlayer-source-files-through-0.3.4-code-injection-via-javascript-frontmatter

Credits

Ikram-4