{"id":"CVE-2026-78847","published":"2026-09-21T22:16:58.863","lastModified":"2026-09-22T20:00:03.713","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.","cvssScore":9.8,"cvssSeverity":"CRITICAL","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cwes":["CWE-95"],"vendors":[],"products":[],"references":[{"url":"https://blog.checo.cc/en/posts/Security/1","tags":[]},{"url":"https://github.com/jonschlinkert/gray-matter/issues/112","tags":[]},{"url":"https://github.com/jonschlinkert/gray-matter/issues/131","tags":[]},{"url":"https://github.com/jonschlinkert/gray-matter/issues/182","tags":[]},{"url":"https://github.com/jonschlinkert/gray-matter/issues/182","tags":[]}],"exploitRefs":[{"url":"https://github.com/jonschlinkert/gray-matter/issues/112","tags":[]},{"url":"https://github.com/jonschlinkert/gray-matter/issues/131","tags":[]},{"url":"https://github.com/jonschlinkert/gray-matter/issues/182","tags":[]},{"url":"https://github.com/jonschlinkert/gray-matter/issues/182","tags":[]}],"hasPoc":true,"ai":{"summary":"The flaw allows arbitrary code execution via the JavaScript engine parsing front matter when the language is set to js/javascript, posing a critical security risk.","exploitability":"Exploitation is relatively straightforward given the use of eval() in the affected version, requiring only the injection of malicious JavaScript code.","blast_radius":"If exploited, this flaw could lead to full system compromise, as it allows for arbitrary code execution.","remediation":"Disable the affected feature or upgrade to the latest version of gray-matter, specifically 4.0.4 or later.","detection":"No reliable host or network indicator is derivable from the published description.","tags":["rce","javascript","eval","code-execution"],"model":"qwen2.5:7b-instruct","analyzedAt":"2026-09-27T08:59:20.901Z"}}