# CVE-2026-129948: Contentlayer @contentlayer/source-files through 0.3.4 Code Injection via JavaScript Frontmatter

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-11-16T15:06:09.912Z
- Modified: 2026-11-17T17:18:02.927Z
- Weaknesses: CWE-95
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- contentlayerdev @contentlayer/source-files: up to 0.3.4

## Every score

- VulnCheck: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/contentlayerdev/contentlayer/issues/688> (issue-tracking)
- <https://github.com/contentlayerdev/contentlayer/blob/v0.3.4/packages/@contentlayer/source-files/src/fetchData/makeCacheItemFromFilePath.ts#L221-L228> (technical-description)
- <https://www.vulncheck.com/advisories/contentlayer-contentlayer-source-files-through-0.3.4-code-injection-via-javascript-frontmatter> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-129948](https://www.cve.org/CVERecord?id=CVE-2026-129948), CVE Terms of Use, modified 2026-11-17
- NVD: [CVE-2026-129948](https://nvd.nist.gov/vuln/detail/CVE-2026-129948), Public domain, modified 2026-11-17

---

Page: https://cve.day/CVE-2026-129948 · Whole record: https://cve.day/CVE-2026-129948.json · Rebuilt by cve.day 2026-11-25T22:59:50.891Z
