GHSA-p6x5-p4xf-cc4r · Severity: critical · Ecosystem: npm — Remote Code Execution (RCE) via String Literal Injection into math-codegen
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 parser. Any application exposing a math evaluation endpoint where user input flows into cg.parse() is vulnerable to full RCE. This issue has been patched in version 0.4.3.
Conclusion & alert: CVE-2026-41507 is rated Moderate Risk (45.5/100): CVSS Critical severity, with low exploitation likelihood (EPSS 0.06%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-05-14 | 0.04% | 0.06% | +0.01% |
| 2 | 2026-05-09 | — | 0.04% | — |
Full EPSS history (2 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 9.8 | 3.1 | CRITICAL |
|
3.9 | 5.9 | [email protected] |
GHSA-p6x5-p4xf-cc4r · Severity: critical · Ecosystem: npm — Remote Code Execution (RCE) via String Literal Injection into math-codegen
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| mauriciopoppe | math-codegen | < 0.4.3 | cpe:2.3:a:mauriciopoppe:math-codegen:*:*:*:*:*:*:*:* |