CVE-2026-41139: CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes in josdejong mathjs
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.
AI Analysis
Technical Summary
CVE-2026-41139 affects the mathjs library for JavaScript and Node.js, specifically versions >=13.1.0 and <15.2.0. The vulnerability arises from CWE-915 (Improperly Controlled Modification of Dynamically-Determined Object Attributes) and CWE-94 (Improper Control of Generation of Code), enabling arbitrary JavaScript code execution through the expression parser. This can lead to full confidentiality, integrity, and availability impacts. The issue has been patched in version 15.2.0. The Red Hat advisory confirms the vulnerability but does not explicitly state remediation level beyond the patch availability.
Potential Impact
Successful exploitation allows an attacker with at least low privileges (PR:L) and no user interaction (UI:N) to execute arbitrary JavaScript code remotely (AV:N), resulting in complete compromise of confidentiality, integrity, and availability of the affected system or application using the vulnerable mathjs versions.
Mitigation Recommendations
Upgrade mathjs to version 15.2.0 or later, where this vulnerability has been patched. Patch status is confirmed by the vendor advisory. No alternative mitigations or temporary fixes are indicated.
CVE-2026-41139: CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes in josdejong mathjs
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.
CVSS v3.0
Score 8.8high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-41139 affects the mathjs library for JavaScript and Node.js, specifically versions >=13.1.0 and <15.2.0. The vulnerability arises from CWE-915 (Improperly Controlled Modification of Dynamically-Determined Object Attributes) and CWE-94 (Improper Control of Generation of Code), enabling arbitrary JavaScript code execution through the expression parser. This can lead to full confidentiality, integrity, and availability impacts. The issue has been patched in version 15.2.0. The Red Hat advisory confirms the vulnerability but does not explicitly state remediation level beyond the patch availability.
Potential Impact
Successful exploitation allows an attacker with at least low privileges (PR:L) and no user interaction (UI:N) to execute arbitrary JavaScript code remotely (AV:N), resulting in complete compromise of confidentiality, integrity, and availability of the affected system or application using the vulnerable mathjs versions.
Mitigation Recommendations
Upgrade mathjs to version 15.2.0 or later, where this vulnerability has been patched. Patch status is confirmed by the vendor advisory. No alternative mitigations or temporary fixes are indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-17T12:59:15.738Z
- Cvss Version
- 3.0
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-41139","vendor":"Red Hat"}]
Threat ID: 69fc24d8cbff5d86109abcb2
Added to database: 05/07/2026, 05:36:24 UTC
Last enriched: 07/15/2026, 09:13:53 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 143
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.