CVE Catalog

CVE-2026-78847

CriticalCVSS 9.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.17%

7th percentile - higher than 7% of all known CVEs

Summary

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.

Risk Assessment

An attacker can execute arbitrary JavaScript code in the context of the application processing untrusted input, potentially leading to system compromise. The risk is high if the application processes user-supplied data.

Recommendation

Update gray-matter to a version that does not use eval() for parsing, or use an alternative solution. Avoid processing untrusted input through this library.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS