Vulnerability · high · CVSS 8.7
Contentlayer frontmatter can execute code during build (CVE-2026-129948)
Tier B · Patch this week – Put it in the sprint
Who’s exposed: Projects using @contentlayer/source-files through version 0.3.4
Tier B because: Full takeover OR secrets exposed OR supply chain
Reach
Attack
Damage
Fix
Full takeover
What to do
- Check whether your project uses @contentlayer/source-files version 0.3.4 or earlier
The Brief
- CVE-2026-129948 affects @contentlayer/source-files through version 0.3.4.
- The package processes Markdown through a path where gray-matter's JavaScript engine stays enabled.
- A person who controls Markdown content can execute code during the build.
Why it matters
If your build processes Markdown you do not fully control, frontmatter could run arbitrary code on your build machine or CI runner.
The checklist behind the tier
Checklist · 2 of 10 yes
| Yes | Hits tech teams | Contentlayer is a developer content-build library for static sites, so developers run it. |
| No | Core infrastructure | Judgment: a single content library for static sites, not core infrastructure like OpenSSH or npm as a whole. |
| No | Popular tool | Judgment: Contentlayer is a niche static-site content tool, not a widely used mainstream framework. |
| No | Exploited in the wild | DEV Community describes the flaw only; no observed attacks are reported. |
| No | Public exploit | DEV Community describes the flaw only; no exploit code or proof-of-concept is mentioned. |
| No | Remote, no login | CVSSCVSS: CVE-2026-129948 AV:N/PR:L/UI:N |
| Yes | Full takeover | CVSSCVE-2026-129948: CVSS rates confidentiality and integrity impact high |
| No | Secrets exposed | DEV Community reports code execution only; no stolen or exposed secrets are mentioned. |
| No | Supply chain | DEV Community reports a vulnerability in source-files; no compromised package or malicious release is mentioned. |
| No | No fix yet | DEV Community excerpt does not say whether a patched version exists, so no lack of fix is stated. |
The official record
From CVE.org, CISA’s Known Exploited Vulnerabilities catalog, FIRST EPSS and the GitHub Advisory Database. Where these answer a checklist fact, they win over the reporting.
CVE-2026-129948 ↗CVSS 8.7 high AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Contentlayer @contentlayer/source-files through 0.3.4 Code Injection via JavaScript Frontmatter
- Exploited
- Not in CISA’s exploited catalog
- EPSS
- <1% chance of exploitation in the next 30 days · higher than 28% of all CVEs
- Weakness
- CWE-95
Source
Contentlayer frontmatter can execute code inside the build ↗ DEV Community: javascript · 4h ago
First seen · 1 source · Full story page · How tiers are decided