CVE-2026-78847
Remote code execution in gray-matter via eval() in JavaScript engine
Critical 9.8 No auth needed
Follow: this CVE We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- —
- Auth required
- No
- Published
- Sep 21, 2026
- Updated
- Sep 22, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-95
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
gray-matter in all versions (verified on 4.0.3) allows arbitrary JavaScript code execution through eval() in lib/engines.js when front matter language is js or javascript. An unauthenticated attacker can execute remote code by processing files with malicious front matter.
Show the original NVD text
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.
What to do
No patch data
Avoid processing front matter files with js/javascript language from untrusted sources. Check the official repository for vendor updates.
- Check whether you run any of the affected products and follow the vendor advisory.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Official sources
References
Links published by the sources. Open them with care.