{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-41507","published":"2026-05-08T14:16:34.133000Z","last_modified":"2026-10-26T19:10:00.163000Z","status":"Analyzed","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"security-advisories@github.com","primary":false},"auth":false,"cwes":["CWE-94"],"cpes":[{"criteria":"cpe:2.3:a:mauriciopoppe:math-codegen:*:*:*:*:*:*:*:*","part":"a","vendor":"mauriciopoppe","product":"math-codegen","version_end_excluding":"0.4.3"}],"cpes_truncated":false,"vendors":["mauriciopoppe"],"products":["mauriciopoppe/math-codegen"],"ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"total"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-p6x5-p4xf-cc4r","ecosystem":"npm","name":"math-codegen","purl":"pkg:npm/math-codegen","ranges":[{"introduced":"0","fixed":"0.4.3"}],"versions":[],"versions_truncated":false}],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2026-41507/","html_en":"/en/cve/CVE-2026-41507/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-41507","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-41507"},"untrusted":{"vendor_name":"Mauriciopoppe","product_name":"Math-codegen","desc_en":"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.","affected":[{"untrusted_vendor":"mauriciopoppe","untrusted_product":"math-codegen","versions":[]}],"references":[{"url":"https://github.com/mauriciopoppe/math-codegen/commit/4bb52d3030683362b3559ee8dd91350555a05f6b","tags":["Patch"]},{"url":"https://github.com/mauriciopoppe/math-codegen/pull/11","tags":["Issue Tracking"]},{"url":"https://github.com/mauriciopoppe/math-codegen/security/advisories/GHSA-p6x5-p4xf-cc4r","tags":["Vendor Advisory"]}]}}