CVE-2026-27212
CRITICAL 9.4CVSS 4.0Prototype pollution in swiper
Swiper is a free and mobile touch slider with hardware accelerated transitions and native behavior. Versions 6.5.1 through 12.1.1 have a Prototype pollution vulnerability. The vulnerability resides in line 94 of shared/utils.mjs, where the indexOf() function is used to check whether user provided input contain forbidden strings. 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. Any application that processes attacker-controlled input using this package may be affected by the following: Authentication Bypass, Denial of Service and RCE. This issue is fixed in version 12.1.2.
- Published
- 21 Feb 2026
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-1321
- Also known as
- GHSA-hmx5-qpq5-p643
- Sources
- NVDJSONOSV GHSA-hmx5-qpq5-p643JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | CRITICAL 9.4 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | swiperjs | swipercpe:2.3:a:swiperjs:swiper:*:*:*:*:*:node.js:*:* |
>= 6.5.1, < 12.1.2 | 12.1.2 |
| OSV | npm | swiper | >= 6.5.1, < 12.1.2 | 12.1.2 |
References
- https://github.com/nolimits4web/swiper/commit/d3e663322a13043ca63aaba235d8cf3900e0c8cf · Patch, WEB
- https://github.com/nolimits4web/swiper/releases/tag/v12.1.2 · Product, WEB
- https://github.com/nolimits4web/swiper/security/advisories/GHSA-hmx5-qpq5-p643 · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-27212 · ADVISORY
- https://github.com/nolimits4web/swiper · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 21 Feb 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 19 Feb 2026)