LiveActive security incident?Get immediate response
CVE Record

CVE-2026-41139: Unsafe array index getter in 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.

HighCVSS 8.8Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2026-41139 affects mathjs, a JavaScript math library. Vulnerable versions can let an attacker execute arbitrary JavaScript through the expression parser. This can threaten confidentiality, integrity, and availability when vulnerable parsing is exposed to users or lower-privileged actors.

Executive priority

Prioritize remediation this cycle for any service that exposes mathjs expression parsing to users, tenants, or API clients. The issue has high impact and a patched version is named. Lower priority may be reasonable only where mathjs is absent, unused, or not reachable by untrusted input.

Technical view

mathjs versions 13.1.0 through before 15.2.0 are affected. The CVE describes arbitrary JavaScript execution via the expression parser, with CWE-94 and CWE-915 mappings. CVSS 3.0 is 8.8: network vector, low complexity, low privileges, no user interaction, and high impact across CIA.

Likely exposure

Applications using mathjs >=13.1.0 and <15.2.0 are potentially exposed, especially if they evaluate user-controlled expressions. Exposure can be direct or transitive through npm dependencies. The source bundle does not identify specific downstream products or platforms beyond mathjs.

Exploitation context

The CVE is not marked KEV, and the provided sources do not state active exploitation. The CVSS vector indicates a remotely reachable, low-complexity issue requiring low privileges and no user interaction. Treat exposed expression parsing as urgent, but do not assume exploitation without local evidence.

Researcher notes

Focus triage on parser reachability, trust boundaries, and deployed versions. The sources confirm affected range and fixed release but do not provide safe compensating controls beyond updating. Avoid relying on exploit claims unless supported by KEV, vendor advisories, or observed telemetry.

Mitigation direction

  • Upgrade mathjs to version 15.2.0 or later.
  • Audit lockfiles for direct and transitive vulnerable mathjs versions.
  • Restrict untrusted access to expression parsing until upgraded.
  • Review vendor guidance for packaged or downstream distributions.
  • Prioritize internet-facing or multi-tenant expression evaluation paths.

Validation and detection

  • Check package manifests and lockfiles for mathjs versions.
  • Confirm deployed artifacts use mathjs 15.2.0 or later.
  • Identify routes or jobs evaluating user-controlled expressions.
  • Review dependency trees for transitive mathjs inclusion.
  • Check Red Hat status if using Red Hat-distributed packages.
Prepared
Confidence
high
Sources
8

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-915: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cwe · medium confidence lookup

CWE-94: Code execution behavior lookup

Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-41139 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
8.8 (3.0)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

2CVSS vectors
5Timeline events
2ADP providers
9Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total

CVSS vector scores

2 official scores

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
8.8CVSS 3.0HighCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H2.85.9GitHub_M
8.8CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H2.85.9redhat-SADP

Vulnerability scoring details

Base CVSS 3.1 score

8.8High
CVSS 3.1 vector shape for CVE-2026-41139Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. ADP timelineredhat-SADP

    Made public.

  3. CVE publishedCVE Program

    The CVE record was published.

  4. ADP timelineredhat-SADP

    Reported to Red Hat.

  5. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
other:ssvc
redhat-SADPmathjs: math.js: Arbitrary code execution via expression parser
other:Red Hat severity ratingcvssV3_1
  • 2026-05-07T06:01:08.621Z: Reported to Red Hat.
  • 2026-05-07T05:06:28.746Z: Made public.

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
josdejongmathjs>= 13.1.0, < 15.2.0Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.