Arbitrary Code Injection Affecting gray-matter package, versions *


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.6% (47th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-GRAYMATTER-20532010
  • published6 Oct 2026
  • disclosed21 Sept 2026
  • creditUnknown

Introduced: 21 Sep 2026

NewCVE-2026-78847  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

There is no fixed version for gray-matter.

Overview

gray-matter is a Parse front-matter from a string or file. Fast, reliable and easy to use. Parses YAML front matter by default, but also has support for YAML, JSON, TOML or Coffee Front-Matter, with options to set custom delimiters. Used by metalsmith, assemble, verb and

Affected versions of this package are vulnerable to Arbitrary Code Injection via the eval process in lib/engines.js when parsing front matter with the language set to js or javascript. An attacker can execute arbitrary code by supplying crafted input that is evaluated by the JavaScript engine.

CVSS Base Scores

version 4.0
version 3.1