{"cve":"CVE-2026-40897","nvd":{"published":"2026-04-24T17:16:20.783","modified":"2026-10-26T21:10:00.170","status":"Modified","description":"Math.js is an extensive math library for JavaScript and Node.js. From 13.1.1 to before 15.2.0, a vulnerability allowed executing arbitrary JavaScript via the expression parser of mathjs. You can be affected when you have an application where users can evaluate arbitrary expressions using the mathjs expression parser. This vulnerability is fixed in 15.2.0.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-915","CWE-917"],"references":["https://github.com/josdejong/mathjs/commit/513ab2a0e01004af91b31aada68fae8a821326ad","https://github.com/josdejong/mathjs/pull/3656","https://github.com/josdejong/mathjs/security/advisories/GHSA-29qv-4j9f-fjw5","https://access.redhat.com/security/cve/CVE-2026-40897","https://bugzilla.redhat.com/show_bug.cgi?id=2461612"],"products":["mathjs:mathjs"],"source":"nvd","synced_at":"2026-10-26T21:38:48.864438205+00:00"},"epss":{"cve":"CVE-2026-40897","score":0.00551,"percentile":0.45798,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-29qv-4j9f-fjw5","url":"https://osv.dev/vulnerability/GHSA-29qv-4j9f-fjw5","summary":"Unsafe object property setter in mathjs","modified":"2026-09-10T03:50:42.109615433Z","packages":[{"ecosystem":"npm","name":"mathjs","purl":"pkg:npm/mathjs","ranges":[">=13.1.1 <15.2.0"],"fixed":["15.2.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}