SCA: security update for math-codegen (GHSA-p6x5-p4xf-cc4r)

critical Tenable Cloud Security Plugin ID 440602

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2026-41507)

Solution

Update the math-codegen library and its related packages to version 0.4.3 or later.

See Also

https://github.com/advisories/GHSA-p6x5-p4xf-cc4r

Plugin Details

Severity: Critical

ID: 440602

Version: Revision 1.8

Type: Local

Family: SCA Checks

Published: 4/18/2026

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.76

Vendor

Vendor Severity: Critical

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.4

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2026-41507

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 4/17/2026

Vulnerability Publication Date: 4/17/2026

Reference Information

CVE: CVE-2026-41507

cwe: CWE-94