{"id":"CVE-2026-40897","revision":"d106d06df8eb451ab9de53b3d0b2cbdd","records":[{"revision":"d106d06df8eb451ab9de53b3d0b2cbdd","observedAt":"2026-10-25T09:17:30.114+00:00","statement":{"source":"nvd","id":"CVE-2026-40897","aliases":[],"title":"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 wher…","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.","state":0,"publishedAt":"2026-04-24T17:16:20.783+00:00","modifiedAt":"2026-07-15T02:21:09.73+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"severity":"HIGH"},{"system":"CVSS 3.1 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46c · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"severity":"HIGH"}],"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","https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40897.json"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-40897","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-915","CWE-917"],"productCriteria":["cpe:2.3:a:mathjs:mathjs:*:*:*:*:*:node.js:*:*"],"sourceDates":{"published":"2026-04-24T17:16:20.783","lastModified":"2026-07-15T02:21:09.730"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-40897","identifiers":["CVE-2026-40897"]},"retained":false,"historicalAffected":[]}],"coverage":[]}