CVE-2026-78847 Code injection in n/a

Critical 9.8 Published Updated

Attackers can execute arbitrary code via JavaScript injection in front matter parsing due to unsafe eval usage in the gray-matter library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-78847?

CVE-2026-78847 is a critical code injection vulnerability in n/a, published on 21 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue in gray-matter All versions (verified on 4.0.3) allows the JavaScript engine in lib/engines.js using eval() to parse front matter when language is js/javascript.This allows arbitrary code execution.

Weakness: CWE-95

Which versions are affected by CVE-2026-78847?

How do I fix CVE-2026-78847?

No fix has been published for CVE-2026-78847 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-78847 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-78847 exists.

Sources

Also known as GHSA-j9gx-vjm3-jpmm.

Is CVE-2026-78847 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free