CVE-2026-41507: Schwachstelle in Mauriciopoppe Math-codegen
Kritisch. 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...
npm, CWE-94
- Ausnutzung
- Nicht bestätigt
- Schweregrad
- 9,8 von 10
- Angriffsrisiko
- Unbekannt
- Korrektur
- Korrigierte Version bekannt
- Update-Frist
- Keine Frist gesetzt
Details
- Hinweis-ID
- GHSA-p6x5-p4xf-cc4r
- Vektor
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Fehlerklasse
- CWE-94
- Veröffentlicht
- 17. Apr. 2026
- Letzte Änderung
- 26. Okt. 2026
- Ökosystem
- npm
Betroffene Produkte
Betroffene Versionen und erste korrigierte Version
- Mauriciopoppe Math-codegen Vor 0.4.3. Behoben in 0.4.3
Betroffene Pakete
Anfällige Versionsbereiche und korrigierte Versionen
- math-codegen npm, Betroffen: Vor 0.4.3. Behoben in 0.4.3
Sicherheitshinweise
Hinweise von Herstellern und Sicherheitsstellen
Updates und Korrekturen
Updates, Commits und Versionshinweise
- github.com/mauriciopoppe/math-codegen/pull/11
- github.com/mauriciopoppe/math-codegen/commit/4bb52d3030683362b3559ee8dd91350555a05f6b
Weiter
- Schwachstellen in Math-codegen Aktuelle Hinweise, Produkt beobachten