Skip to content
Heist/ feed
Back to feed
High

Prototype Pollution

Type: advisorySources: OSV

All versions of package safe-eval are vulnerable to Prototype Pollution which allows an attacker to add or modify properties of the Object.prototype.Consolidate when using the function safeEval. This is because the function uses vm variable, leading an attacker to modify properties of the Object.prototype.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-25904
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 00:57 UTC · Revision 1

Source evidence

Prototype Pollution

core-osv · Original source

Published 20 Dec 2022, 05:15 UTC

All versions of package safe-eval are vulnerable to Prototype Pollution which allows an attacker to add or modify properties of the Object.prototype.Consolidate when using the function safeEval. This is because the function uses vm variable, leading an attacker to modify properties of the Object.prototype.

osv:CVE-2022-25904
Complete source record
{
  "id": "649c62f6d247a4459e31e9dec6e267c7f2957df5dc8ed4e96999bd7bc95bc396",
  "url": "https://osv.dev/vulnerability/CVE-2022-25904",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Prototype Pollution",
    "summary": "All versions of package safe-eval are vulnerable to Prototype Pollution which allows an attacker to add or modify properties of the Object.prototype.Consolidate when using the function safeEval. This is because the function uses vm variable, leading an attacker to modify properties of the Object.prototype.",
    "evidence": "osv:CVE-2022-25904",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2022-25904",
      "aliases": [
        "CVE-2022-25904",
        "GHSA-33vh-7x8q-mg35"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/hacksparrow/safe-eval",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "e6c5dba9a8b3e151b012d5ed50e3a781592911ac"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:safe-eval_project:safe-eval:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "0.4.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.4.1",
            "0.4.0",
            "0.3.0",
            "0.2.0",
            "0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-25904.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:24.846374633Z",
      "provider": "osv",
      "references": [
        "https://security.snyk.io/vuln/SNYK-JS-SAFEEVAL-3175701",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25904.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-25904",
        "https://github.com/hacksparrow/safe-eval/issues/26"
      ],
      "provider_metadata": {
        "cna_assigner": "snyk",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [],
                "source": "AFFECTED_FIELD",
                "strategy": "SplitRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25904.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-25904",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 491388,
  "published_at": "2022-12-20T05:15:11.487+00:00"
}