International
The Morning Dev

Only the news worth knowing

‹
 

Security · High impactFan score 42 · Tier B

Contentlayer frontmatter can execute code inside the build

DEV · By kozhevniko ·

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.

Who’s affected

  • Projects using @contentlayer/source-files through 0.3.4

What to do

  1. Check whether your project uses @contentlayer/source-files version 0.3.4 or earlier
  • @contentlayer/source-files through 0.3.4
  • CVE-2026-129948
  • #security
  • #contentlayer
  • #markdown
  • #gray-matter
  • #build-tools

Contentlayer frontmatter can execute code inside the build CVE-2026-129948 affects @contentlayer/source-files through 0.3.4. The vulnerable package passes Markdown content through a processing path where gray-matter's JavaScript engine remains enabled. A person who controls a…

How do you feel about this?

0 Comments