CVE-2026-41507
CRITICAL
INFO
Priority: 0.04
BB Relevance:
80/100
Published: 2026-05-08
Modified: 2026-10-26
First seen: 2026-10-29
Status: active
Attack Surface
Network
Low Complexity
No Auth
No Interaction
Conf. Impact
Integ. Impact
CVSS Vector Breakdown
AV:
Network
AC:
Low
PR:
None
UI:
None
S:
Unchanged
C:
High
I:
High
A:
High
Description
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.
Weakness Classification (1)
Affected Software (1)
| Vendor | Product | Version |
|---|---|---|
| mauriciopoppe | math-codegen | < 0.4.3 |
References & Advisories (3)
Vendor Advisory
Patch
Issue Tracking