CVE-2025-65108: Gray Matter Javascript Engine Not Disabled

gray-matter is called without explicitly disabling the 'javascript' evaluation engine. Front-matter blocks using '---javascript' (or '---js') delimiters execute their body as arbitrary Node.js code, enabling remote code execution (CVE-2025-65108). Disabling only the 'js' alias key is insufficient; the canonical key is 'javascript'. Fix: matter(input, { engin

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0JS
greprules fetch cve-2025-65108-gray-matter-javascript-engine-not-disabled --engine opengrep

Description

gray-matter is called without explicitly disabling the 'javascript' evaluation engine. Front-matter blocks using '---javascript' (or '---js') delimiters execute their body as arbitrary Node.js code, enabling remote code execution (CVE-2025-65108). Disabling only the 'js' alias key is insufficient; the canonical key is 'javascript'. Fix: matter(input, { engin