International
The Morning Dev

Only the news worth knowing

‹
 
B42/100

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

  1. 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
YesHits tech teamsContentlayer is a developer content-build library for static sites, so developers run it.
NoCore infrastructureJudgment: a single content library for static sites, not core infrastructure like OpenSSH or npm as a whole.
NoPopular toolJudgment: Contentlayer is a niche static-site content tool, not a widely used mainstream framework.
NoExploited in the wildDEV Community describes the flaw only; no observed attacks are reported.
NoPublic exploitDEV Community describes the flaw only; no exploit code or proof-of-concept is mentioned.
NoRemote, no loginCVSSCVSS: CVE-2026-129948 AV:N/PR:L/UI:N
YesFull takeoverCVSSCVE-2026-129948: CVSS rates confidentiality and integrity impact high
NoSecrets exposedDEV Community reports code execution only; no stolen or exposed secrets are mentioned.
NoSupply chainDEV Community reports a vulnerability in source-files; no compromised package or malicious release is mentioned.
NoNo fix yetDEV 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.

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

Tier B: Contentlayer frontmatter can execute code during build (CVE-2026-129948) – The Morning Dev