{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:mathjs:mathjs:*:*:*:*:*:node.js:*:*",
            "extracted_events": [
              {
                "introduced": "13.1.0"
              },
              {
                "fixed": "15.2.0"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "00a985dbfe2a862b8bf7da0c2261526983531a0d"
            },
            {
              "fixed": "fee4561840043a7473962367bbae6f15bbb3cebb"
            },
            {
              "fixed": "0aee2f61866e35ffa0aef915221cdf6b026ffdd4"
            },
            {
              "fixed": "bcf0da46f0b8577ec03c9ecd7bff8b5c2543a611"
            }
          ],
          "repo": "https://github.com/josdejong/mathjs",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-5v89-rwgr-qj6g"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-915"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41139.json"
  },
  "details": "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.",
  "id": "CVE-2026-41139",
  "modified": "2026-07-16T03:30:55.621054717Z",
  "published": "2026-05-07T05:06:28.746Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/josdejong/mathjs/releases/tag/v15.2.0"
    },
    {
      "type": "WEB",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41139.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/security/cve/CVE-2026-41139"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41139.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/josdejong/mathjs/security/advisories/GHSA-5v89-rwgr-qj6g"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-41139"
    },
    {
      "type": "REPORT",
      "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2467648"
    },
    {
      "type": "FIX",
      "url": "https://github.com/josdejong/mathjs/commit/0aee2f61866e35ffa0aef915221cdf6b026ffdd4"
    },
    {
      "type": "FIX",
      "url": "https://github.com/josdejong/mathjs/commit/bcf0da46f0b8577ec03c9ecd7bff8b5c2543a611"
    },
    {
      "type": "FIX",
      "url": "https://github.com/josdejong/mathjs/pull/3656"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Unsafe array index getter in mathjs"
}