CVE-2026-129948
published high CVSS 4.0 · 8.7Contentlayer @contentlayer/source-files through 0.3.4 Code Injection via JavaScript Frontmatter
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| contentlayerdev | — | @contentlayer/source-files0 through 0.3.4 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.8 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| contentlayerdev | @contentlayer/source-files | 0 through 0.3.4 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
References
3- https://github.com/contentlayerdev/contentlayer/blob/v0.3.4/packages/@contentlayer/source-files/src/fetchData/makeCacheItemFromFilePath.ts#L221-L228
- https://github.com/contentlayerdev/contentlayer/issues/688
- VulnCheck Advisory: Contentlayer @contentlayer/source-files through 0.3.4 Code Injection via JavaScript Frontmatter https://www.vulncheck.com/advisories/contentlayer-contentlayer-source-files-through-0.3.4-code-injection-via-javascript-frontmatter
Provider assertions
2VulnCheck · cna
Contentlayer @contentlayer/source-files through 0.3.4 Code Injection via JavaScript Frontmatter
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- cc19552fda7419f41b3389732671c0fbe272251e7f2699c9271b6ce7771efe8b
- Ingested
- 17 Nov 2026, 16:30:22 UTC
- Source record
- Official CVE record