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.

Project Subscriptions

No data.

Advisories

No advisories yet.

Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Wed, 23 Sep 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 22 Sep 2026 20:45:00 +0000

Type Values Removed Values Added
Title Arbitrary code execution via eval() in front matter parsing

Tue, 22 Sep 2026 19:45:00 +0000

Type Values Removed Values Added
Title gray-matter JavaScript Front Matter Evaluates User Input, Enabling Arbitrary Code Execution
Weaknesses CWE-94

Tue, 22 Sep 2026 16:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-95
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Mon, 21 Sep 2026 22:45:00 +0000

Type Values Removed Values Added
Title gray-matter JavaScript Front Matter Evaluates User Input, Enabling Arbitrary Code Execution
Weaknesses CWE-94

Mon, 21 Sep 2026 21:45:00 +0000

Type Values Removed Values Added
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.
References

Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-09-22T15:12:53.387Z

Reserved: 2026-08-25T00:00:00.000Z

Link: CVE-2026-78847

cve-icon Vulnrichment

Updated: 2026-09-22T15:09:43.862Z

cve-icon NVD

Status : Deferred

Published: 2026-09-21T22:16:58.863

Modified: 2026-09-22T20:00:03.713

Link: CVE-2026-78847

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-22T20:30:08Z

Weaknesses