CVE Feed

    Dashboard / CVE / CVE-2026-41507

    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 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.

    Published:May 8, 2026
    Last Modified:May 12, 2026
    EPS:May 8, 2026
    EPSS Score:0.00045
    CVSS Score:9.8

    Affected Products

    Vendor
    Mauriciopoppe
    Product
    Math-codegen

    Exploits

    No exploit reference

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High