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)

VendorProductVersion
mauriciopoppe math-codegen < 0.4.3

Bug Bounty Relevance

80 / 100
✓ Network accessible
✓ No authentication
✓ Low complexity
✓ No user interaction

CVSS Score

9.8 / 10.0 v3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS — Exploitation Probability

0.39%
Raw Score 0.003930
Percentile 33.4%
Date 2026-10-29

EPSS Trend

2026-10-29
0.00393
2026-10-28
0.00393

Intelligence Sources

nvd ref →