Skip to content
Heist/ feed
Back to feed
High

Prototype Pollution

Type: advisorySources: OSV

This affects the package nconf before 0.11.4. When using the memory engine, it is possible to store a nested JSON representation of the configuration. The .set() function, that is responsible for setting the configuration properties, is vulnerable to Prototype Pollution. By providing a crafted property, it is possible to modify the properties on the Object.prototype.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-21803
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 01:12 UTC · Revision 1

Source evidence

Prototype Pollution

core-osv · Original source

Published 12 Apr 2022, 15:20 UTC

This affects the package nconf before 0.11.4. When using the memory engine, it is possible to store a nested JSON representation of the configuration. The .set() function, that is responsible for setting the configuration properties, is vulnerable to Prototype Pollution. By providing a crafted property, it is possible to modify the properties on the Object.prototype.

osv:CVE-2022-21803
Complete source record
{
  "id": "ad221d1b9f45767e6378793156706ad28de1637cda4fcf8f0680e8c7eb7538f5",
  "url": "https://osv.dev/vulnerability/CVE-2022-21803",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Prototype Pollution",
    "summary": "This affects the package nconf before 0.11.4. When using the memory engine, it is possible to store a nested JSON representation of the configuration. The .set() function, that is responsible for setting the configuration properties, is vulnerable to Prototype Pollution. By providing a crafted property, it is possible to modify the properties on the Object.prototype.",
    "evidence": "osv:CVE-2022-21803",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2022-21803",
      "aliases": [
        "CVE-2022-21803",
        "GHSA-6xwr-q98w-rvg7"
      ],
      "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/indexzero/nconf",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "f25feb2913fc21a5d80039f6213c2d9ae906ec29"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.11.4"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "SplitRange"
                  },
                  {
                    "range": [
                      {
                        "fixed": "f25feb2913fc21a5d80039f6213c2d9ae906ec29"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v0.11.4"
                  },
                  {
                    "cpe": "cpe:2.3:a:nconf_project:nconf:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.11.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.11.3",
            "v0.11.2",
            "v0.11.1",
            "v0.11.0",
            "v0.10.0",
            "list",
            "0.10.0",
            "v0.9.1",
            "0.9.1",
            "0.9.0",
            "v0.8.5",
            "0.8.5",
            "0.8.4",
            "0.8.3",
            "0.8.2",
            "0.8.1",
            "0.8.0",
            "0.7.2",
            "v0.7.1",
            "0.7.1",
            "v0.7.0",
            "0.7.0",
            "v0.6.9",
            "0.6.9",
            "v0.6.8",
            "0.6.8",
            "v0.6.7",
            "0.6.7",
            "v0.6.6",
            "0.6.6",
            "v0.6.5",
            "0.6.5",
            "v0.6.4",
            "0.6.4",
            "v0.6.3",
            "0.6.3",
            "v0.6.2",
            "0.6.2",
            "v0.6.1",
            "0.6.1",
            "v0.6.0",
            "0.6.0",
            "v0.5.1",
            "0.5.1",
            "v0.5.0",
            "0.5.0",
            "v0.4.6",
            "0.4.6",
            "v0.4.5",
            "0.4.5",
            "v0.4.4",
            "0.4.4",
            "v0.4.3",
            "0.4.3",
            "v0.4.2",
            "0.4.2",
            "v0.4.1",
            "0.4.1",
            "v0.4.0",
            "0.4.0",
            "v0.3.1",
            "0.3.1",
            "v0.3.0",
            "0.3.0",
            "v0.2.0",
            "0.2.0",
            "0.1.14",
            "v0.1.13",
            "0.1.13",
            "v0.1.12",
            "0.1.12",
            "v0.1.11",
            "0.1.11",
            "v0.1.10",
            "0.1.10",
            "v0.1.9",
            "0.1.9",
            "v0.1.8",
            "0.1.8",
            "v0.1.7",
            "0.1.7",
            "v0.1.6",
            "0.1.6",
            "v0.1.5",
            "0.1.5",
            "v0.1.4",
            "0.1.4",
            "v0.1.3",
            "0.1.3",
            "v0.1.2",
            "0.1.2",
            "v0.1.1",
            "0.1.1",
            "v0.1.0",
            "0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21803.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:41.580298412Z",
      "provider": "osv",
      "references": [
        "https://github.com/indexzero/nconf/releases/tag/v0.11.4",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21803.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-21803",
        "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2632450",
        "https://snyk.io/vuln/SNYK-JS-NCONF-2395478",
        "https://github.com/indexzero/nconf/pull/397"
      ],
      "provider_metadata": {
        "cna_assigner": "snyk",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21803.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-21803",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 508935,
  "published_at": "2022-04-12T15:20:12.37+00:00"
}