CVE-2026-41139: Math.js - Command Injection
- Cve: CVE-2026-41139
- Name: Math.js - Command Injection
- Description: Math.js is an extensive math library for JavaScript and Node.js. From version 13.1.0 to before version 15.2.0, arbitrary JavaScript can be executed via the expression parser of mathjs. This issue has been patched in version 15.2.0.
- Impact: Attackers can execute arbitrary JavaScript code remotely, potentially leading to full system compromise.
- Remediation: Upgrade to version 15.2.0 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00577
- Epss percentile: 0.48224
- Assignee: [email protected]
- Published at: 2026-05-07T06:16:04Z
- Age in days: 201
- Modified at: 2026-10-26T21:10:00Z
- Patch available: yes
- References total: 8
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-41139
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-915 | Improperly Controlled Modification of Dynamically-Determined Object Attributes |
| CWE-94 | Improper Control of Generation of Code |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| mathjs:mathjs | >= 13.1.0, < 15.2.0 | no | nvd | /v1/products/mathjs/mathjs |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| josdejong/mathjs | commit, fix, package, pull, releases, security_advisory | yes | /v1/repositories/josdejong/mathjs |
Index
- Repositories: 10
- Repositories high signal: 7
- Packages: 1
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts