Skip to content
Back to search

CVE-2026-129948

HIGH
8.8NVD

Summary

generated automatically from NVD data

Contentlayer's @contentlayer/source-files package, through version 0.3.4, has a code injection flaw (CWE-95) in parseMarkdown(), where gray-matter's JavaScript engine remains enabled. An attacker who controls content files can begin a Markdown or MDX file with a ---js or ---javascript frontmatter delimiter, causing arbitrary JavaScript to run during the build and potentially exposing CI build secrets. The flaw has a CVSS v3.1 score of 8.8 (HIGH).

NVD 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.

Share:

EPSS · FIRST.org

0.34%probability of exploitation in the next 30 days

Higher than 28% of scored CVEs

EPSS (Exploit Prediction Scoring System) estimates, from observed exploitation activity, how likely a CVE is to be exploited in the next 30 days. It complements CVSS, which measures severity, not likelihood. Score of 2026-11-19, recomputed daily by FIRST.org.

Similar CVEs

Other vulnerabilities of type CWE-95

…

Know which CVEs hit the versions you run.

Add the product and its version: cveo.tech lists the CVEs that affect it right away, then alerts you by email when a new one affects it — including before NVD has finished its analysis. Free, an account is all it takes.