Prototype pollution in swiper - CVE-2026-27212
Published: May 27, 2026
swiper
Detailed vulnerability description
The vulnerability allows a remote attacker to modify object prototypes.
The vulnerability exists due to improperly controlled modification of object prototype attributes in shared/utils.mjs extendDefaults handling when processing attacker-controlled input after Array.prototype.indexOf has been overwritten. A remote attacker can supply a crafted JSON object and overwrite the global Array.prototype.indexOf behavior to modify object prototypes.
The issue can be triggered across Windows and Linux on Node and Bun runtimes.