swiper
cpe:2.3:a:swiperjs:swiper:*:*:*:*:node.js:*:*
- < 6.5.1
A prototype pollution vulnerability exists in the Swiper package, specifically in versions prior to 6.5.1. This vulnerability allows attackers to inject properties into the Object prototype, potentially leading to unauthorized modifications that could be exploited within the application. The issue arises from the 'extendDefaults' function, which recursively merges objects without proper validation, allowing manipulation of the prototype chain.
Exploitation of this vulnerability allows for prototype pollution, where an attacker can inject properties into the Object prototype. This can lead to various consequences, including remote code execution, denial of service, or tampering with application logic by manipulating inherited properties.
To reproduce this vulnerability, use a version of Swiper prior to 6.5.1. The vulnerability can be triggered by calling the 'extendDefaults' function with a payload that includes a '__proto__' property. This payload will be parsed and the injected property will be added to the Object prototype, demonstrating the pollution.
Users can upgrade to Swiper version 6.5.1 or later to address this vulnerability.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.