CVE-2026-129948
CVE-2026-129948 · Contentlayer @contentlayer/source-files through 0.3.4 Code Injection via JavaScript Frontmatter
CVSS 8.7 · High · EPSS 0.4%
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- @contentlayer/source-filesNo fix published
Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Affected products and versions
@contentlayer/source-files
- Versions
- ≥ 0, ≤ 0.3.4: Affected (semver)
No fix published
Original sources
- https://github.com/contentlayerdev/contentlayer/issues/688
- https://github.com/contentlayerdev/contentlayer/blob/v0.3.4/packages/@contentlayer/source-files/src/fetchData/makeCacheItemFromFilePath.ts#L221-L228
- https://www.vulncheck.com/advisories/contentlayer-contentlayer-source-files-through-0.3.4-code-injection-via-javascript-frontmatter
- https://nvd.nist.gov/vuln/detail/CVE-2026-129948