Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-7770

This affects the package json8 before 1.0.3. The function adds in the target object the property specified in the path, however it does not properly check the key being set, leading to a prototype pollution.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-7770
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:30 UTC · Revision 1

Source evidence

CVE-2020-7770

core-osv · Original source

Published 12 Nov 2020, 11:15 UTC

This affects the package json8 before 1.0.3. The function adds in the target object the property specified in the path, however it does not properly check the key being set, leading to a prototype pollution.

osv:CVE-2020-7770
Complete source record
{
  "id": "73f6fad03c2479c7e2f940c677f35334948833d6dc64670f8dc1f3950c5806d8",
  "url": "https://osv.dev/vulnerability/CVE-2020-7770",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-7770",
    "summary": "This affects the package json8 before 1.0.3. The function adds in the target object the property specified in the path, however it does not properly check the key being set, leading to a prototype pollution.",
    "evidence": "osv:CVE-2020-7770",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2020-7770",
      "aliases": [
        "CVE-2020-7770",
        "GHSA-7h43-gx24-p529",
        "SNYK-JS-JSON8-1017116"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/sonnyp/json8",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "e069491061f23cebbba0c0e9709d1923335433d7"
                },
                {
                  "fixed": "2e890261b66cbc54ae01d0c79c71b0fd18379e7e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:json8_project:json8:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.0.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "2e890261b66cbc54ae01d0c79c71b0fd18379e7e"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-7770.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:24.464810366Z",
      "provider": "osv",
      "references": [
        "https://github.com/sonnyp/JSON8/commit/2e890261b66cbc54ae01d0c79c71b0fd18379e7e",
        "https://snyk.io/vuln/SNYK-JS-JSON8-1017116"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2020-7770",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 385304,
  "published_at": "2020-11-12T11:15:11.87+00:00"
}