VulnerabilityCVE-2026-41507GHSA-p6x5-p4xf-cc4r
Remote Code Execution (RCE) via String Literal Injection into math-codegen
Not on CISA KEVCVSS 9.8 (v3.1)
Summary
math-codegen generates code from mathematical expressions. Prior to version 0.4.3, string literal content passed to cg.parse() is injected verbatim into a new Function() body without sanitization. This allows an attacker to execute arbitrary system commands when user-controlled input reaches the
See the full record, free
- Every source, score and reference in one place
- Timeline and related records
- Watch an entry and get an alert when it changes
Sources and credits
- CVE List Source: CVE Program (cve.org)
- GitHub Advisory DB Source: GitHub Advisory Database (CC BY 4.0)