GHSA-JC85-FPWF-QM7X

Vulnerability from github – Published: 2025-11-05 03:30 – Updated: 2025-12-09 15:33
VLAI?
Summary
expr-eval does not restrict functions passed to the evaluate function
Details

The expr-eval library is a JavaScript expression parser and evaluator designed to safely evaluate mathematical expressions with user-defined variables. However, due to insufficient input validation, an attacker can pass a crafted variables object into the evaluate() function and trigger arbitrary code execution.

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "expr-eval"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "2.0.2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "database_specific": {
        "last_known_affected_version_range": "\u003c= 3.0.0"
      },
      "package": {
        "ecosystem": "npm",
        "name": "expr-eval-fork"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "3.0.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2025-12735"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-94"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2025-11-05T18:46:50Z",
    "nvd_published_at": "2025-11-05T01:15:33Z",
    "severity": "HIGH"
  },
  "details": "The expr-eval library is a JavaScript expression parser and evaluator designed to safely evaluate mathematical expressions with user-defined variables. However, due to insufficient input validation, an attacker can pass a crafted variables object into the evaluate() function and trigger arbitrary code execution.",
  "id": "GHSA-jc85-fpwf-qm7x",
  "modified": "2025-12-09T15:33:15Z",
  "published": "2025-11-05T03:30:23Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-12735"
    },
    {
      "type": "WEB",
      "url": "https://github.com/silentmatt/expr-eval/pull/288"
    },
    {
      "type": "WEB",
      "url": "https://github.com/silentmatt/expr-eval/pull/289"
    },
    {
      "type": "WEB",
      "url": "https://github.com/jorenbroekema/expr-eval/commit/1d71bb2ca8f98df8de00e9cc4de8fdd468a7ad43"
    },
    {
      "type": "WEB",
      "url": "https://github.com/jorenbroekema/expr-eval"
    },
    {
      "type": "WEB",
      "url": "https://github.com/jorenbroekema/expr-eval/blob/460b820ba01c5aca6c5d84a7d4f1fa5d1913c67b/test/security.js"
    },
    {
      "type": "WEB",
      "url": "https://github.com/silentmatt/expr-eval"
    },
    {
      "type": "WEB",
      "url": "https://kb.cert.org/vuls/id/263614"
    },
    {
      "type": "WEB",
      "url": "https://www.kb.cert.org/vuls/id/263614"
    },
    {
      "type": "WEB",
      "url": "https://www.npmjs.com/package/expr-eval"
    },
    {
      "type": "WEB",
      "url": "https://www.npmjs.com/package/expr-eval-fork"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "expr-eval does not restrict functions passed to the evaluate function"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…