RCE in Mauriciopoppe Math-codegen
CVE-2026-41507
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 arbitra…
Vulnerability class: RCE (Remote Code Execution)
EPSS: 0.001 (18.1th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Mauriciopoppe Math-codegen — versions < 0.4.3
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM, Vendor Advisory)
- security-advisories@github.com (x_refsource_MISC, Issue Tracking)
- security-advisories@github.com (Patch, x_refsource_MISC)
Frequently asked questions
- What is CVE-2026-41507?
- CVE-2026-41507 is a critical-severity vulnerability in Mauriciopoppe Math-codegen, classified under Code Injection. CVSS score: 9.8/10. Published 2026-05-08.
- How severe is CVE-2026-41507?
- Critical severity. CVSS v3 base score is 9.8 out of 10.