CVE-2026-129948
8.7high
Contentlayer @contentlayer/source-files through 0.3.4 Code Injection via JavaScript Frontmatter
- Severity
- 8.7high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.43% (higher than 38% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| contentlayerdev @contentlayer/source-files | up to 0.3.4 | CVE List |
All scores
| VulnCheck | 8.7high CVSS:4.0 | 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 | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-129948 changed 2026-11-17 | CVE Terms of Use |
| NVD | CVE-2026-129948 changed 2026-11-17 | Public domain |