Skip to content
Heist/ feed
Back to feed
High

Prototype Pollution

Type: advisorySources: OSV

The package dexie before 3.2.2, from 4.0.0-alpha.1 and before 4.0.0-alpha.3 are vulnerable to Prototype Pollution in the Dexie.setByKeyPath(obj, keyPath, value) function which does not properly check the keys being set (like __proto__ or constructor). This can allow an attacker to add/modify properties of the Object.prototype leading to prototype pollution vulnerability. **Note:** This vulnerability can occur in multiple ways, for example when modifying a collection with untrusted user input.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-21189
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 17:06 UTC · Revision 1

Source evidence

Prototype Pollution

core-osv · Original source

Published 1 May 2022, 15:25 UTC

The package dexie before 3.2.2, from 4.0.0-alpha.1 and before 4.0.0-alpha.3 are vulnerable to Prototype Pollution in the Dexie.setByKeyPath(obj, keyPath, value) function which does not properly check the keys being set (like __proto__ or constructor). This can allow an attacker to add/modify properties of the Object.prototype leading to prototype pollution vulnerability. **Note:** This vulnerability can occur in multiple ways, for example when modifying a collection with untrusted user input.

osv:CVE-2022-21189
Complete source record
{
  "id": "94fc8b0299820a3735ec5ea6ff98617c17ebe5fd0241d64f430619998b5a13e1",
  "url": "https://osv.dev/vulnerability/CVE-2022-21189",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Prototype Pollution",
    "summary": "The package dexie before 3.2.2, from 4.0.0-alpha.1 and before 4.0.0-alpha.3 are vulnerable to Prototype Pollution in the Dexie.setByKeyPath(obj, keyPath, value) function which does not properly check the keys being set (like __proto__ or constructor). This can allow an attacker to add/modify properties of the Object.prototype leading to prototype pollution vulnerability. **Note:** This vulnerability can occur in multiple ways, for example when modifying a collection with untrusted user input.",
    "evidence": "osv:CVE-2022-21189",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2022-21189",
      "aliases": [
        "CVE-2022-21189",
        "GHSA-3xgx-r9j4-qw9w"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/dexie/dexie.js",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "c698052360bd0b0d958ff38d74933f15f9f83909"
                },
                {
                  "fixed": "1d655a69b9f28c3af6fae10cf5c61df387dc689b"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:dexie:dexie:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "3.2.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "1d655a69b9f28c3af6fae10cf5c61df387dc689b"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.0.0-alpha.4",
            "v1.4.0-beta",
            "v1.3.1",
            "v1.3.0",
            "v1.2.0",
            "v1.2",
            "v1.1.0",
            "v1.1",
            "v1.0.4",
            "v1.0.3",
            "v1.0.2",
            "v1.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21189.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:21.398246106Z",
      "provider": "osv",
      "references": [
        "https://github.com/dexie/Dexie.js/blob/fe682ef24568278c3b31d9d6c93de095d4b77ae8/src/functions/utils.ts%23L134-L164",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21189.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-21189",
        "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2805308",
        "https://snyk.io/vuln/SNYK-JS-DEXIE-2607042",
        "https://github.com/dexie/Dexie.js/commit/1d655a69b9f28c3af6fae10cf5c61df387dc689b"
      ],
      "provider_metadata": {
        "cna_assigner": "snyk",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21189.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-21189",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 487541,
  "published_at": "2022-05-01T15:25:21.478+00:00"
}