CVE-2026-41507
Last modified
CVE-2026-41507 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 0.39% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Mauriciopoppe | Math-Codegen | < 0.4.3 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-41507?
How severe is CVE-2026-41507?
How do I fix CVE-2026-41507?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-41500electerm is an open-sourced terminal/ssh/sftp/telnet/serialp…9.8
- CVE-2026-41501electerm is an open-sourced terminal/ssh/sftp/telnet/serialp…9.8
- CVE-2026-41502BACnet Stack is a BACnet open source protocol stack C librar…7.5
- CVE-2026-41503BACnet Stack is a BACnet open source protocol stack C librar…7.5
- CVE-2026-41505RELATE is a web-based courseware package. Prior to commit 2f…8.7
- CVE-2026-41506go-git is an extensible git implementation library written i…7.4
- CVE-2026-41509CROSS implementation contains reference and optimized implem…9.8
- CVE-2026-4151GIMP ANI File Parsing Integer Overflow Remote Code Execution…7.8
- CVE-2026-41511OpenMcdf is a fully .NET / C# library to manipulate Compound…5.5
- CVE-2026-41512ai-scanner is an AI model safety scanner built on NVIDIA gar…9.9
- CVE-2026-41513Horilla is an HR and CRM software. In 1.5.0, the notificatio…4.8
- CVE-2026-41514OP-TEE is a Trusted Execution Environment (TEE) designed as …3.3
Are you affected by CVE-2026-41507?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
