asciitable.js@1.0.0 vulnerabilities

Generate a ASCII Table from a bidimensional array of strings

  • latest version

    2.0.1

  • latest non vulnerable version

  • first published

    8 years ago

  • latest version published

    3 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the asciitable.js package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Prototype Pollution

    asciitable.js is a Generate a ASCII Table from a bidimensional array of strings

    Affected versions of this package are 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)
    

    How to fix Prototype Pollution?

    Upgrade asciitable.js to version 1.0.3 or higher.

    <1.0.3