npm package report

Is math-codegen safe?

1 known vulnerability, worst severity CRITICAL.

cvss
9.0

how bad it is if exploited, out of 10

epss
not scored

chance of exploitation in the next 30 days

xyz score
4.7

CyberXYZ composite, out of 10

fig. 01 — GHSA-p6x5-p4xf-cc4r, the advisory selected below

// advisories

GHSA-p6x5-p4xf-cc4r

CRITICAL

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.

Affected
>=0, <0.4.3, < 0.4.3
Fixed in
0.4.3
Weakness
CWE-94
Published
2026-04-17
Source
osv

OSV


// dependencies

1 direct, 1 carrying known advisories, worst MEDIUM

Sign in for dependency paths and remediation

// ai model usage

Tracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.


Checked 2026-09-22 at 01:31 UTC. The most recent advisory here was published 2026-04-17. Updated continuously from NVD, GHSA, OSV and CNA feeds.

Think a verdict here is wrong? Tell us — we respond within 2 business days.
Is math-codegen safe? npm package security report | CyberXYZ