Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. mathjs
  4. ›
  5. CVE-2026-41139

CVE-2026-41139: mathjs Allows Improperly Controlled Modification of Dynamically-Determined Object Attributes

April 10, 2026 (updated April 23, 2026)

This security 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.

References

  • github.com/advisories/GHSA-jvff-x2qm-6286
  • github.com/josdejong/mathjs
  • github.com/josdejong/mathjs/commit/0aee2f61866e35ffa0aef915221cdf6b026ffdd4
  • github.com/josdejong/mathjs/commit/bcf0da46f0b8577ec03c9ecd7bff8b5c2543a611
  • github.com/josdejong/mathjs/pull/3656
  • github.com/josdejong/mathjs/releases/tag/v15.2.0
  • github.com/josdejong/mathjs/security/advisories/GHSA-jvff-x2qm-6286
  • nvd.nist.gov/vuln/detail/CVE-2026-41139

Code Behaviors & Features

Detect and mitigate CVE-2026-41139 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 13.1.0 before 15.2.0

Fixed versions

  • 15.2.0

Solution

Upgrade to version 15.2.0 or above.

Impact 8.8 HIGH

CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes

Source file

npm/mathjs/CVE-2026-41139.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 24 Apr 2026 12:19:10 +0000.