CVE-2026-27212: Vulnerability in Swiperjs Swiper

Critical. A prototype pollution vulnerability exists in the the npm package swiper (>=6.5.1, < 12.1.2). Despite a previous fix that attempted to mitigate prototype pollution by checking whether user input contained a forbidden key, it is still possible to pollute Object.prototype via a crafted input using Array.prototype. The exploit works across Windows and Linux and on Node and Bun runtimes. This issue is fixed in...

npm, CWE-1321

Exploitation
None confirmed
Severity
9.4 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-hmx5-qpq5-p643
Vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Weakness
CWE-1321
Published
19 Feb 2026
Last change
17 Jun 2026
Ecosystem
npm

Affected products

Affected versions and the first fixed release

  • Swiperjs Swiper From 6.5.1 before 12.1.2. Fixed in 12.1.2

Affected packages

Vulnerable version ranges and fixed releases

  • swiper npm, Affected from 6.5.1 before 12.1.2. Fixed in 12.1.2

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Related