Swiper has a Prototype Pollution Vulnerability
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| nolimits4web | swiper | 6.5.1 to before 12.1.2 | 12.1.2 | Patch available | CNA |
| — | swiper (npm) | 6.5.1 to before 12.1.2 | 12.1.2 | Patch available | GHSA-hmx5-qpq5-p643 |
- swiper Vendornolimits4web Affected 6.5.1 to before 12.1.2 Fixed in 12.1.2 Patch available CNA
- swiper (npm) Vendor— Affected 6.5.1 to before 12.1.2 Fixed in 12.1.2 Patch available GHSA-hmx5-qpq5-p643
Remediation
- Fix · CNA swiper (nolimits4web) Fixed in 12.1.2
- Fix · GHSA-hmx5-qpq5-p643 swiper (npm) Fixed in 12.1.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-27212
- 2026-10-03 Alias added: GHSA-hmx5-qpq5-p643
References
More Swiperjs Swiper vulnerabilities
- TI-2024-26761 adolph_dudu ratio-swiper 0.0.2 was discovered to contain a prototype pollution via the… CVSS 3.1MEDIUM 6.5
- TI-2024-26140 adolph_dudu ratio-swiper v0.0.2 was discovered to contain a prototype pollution via the… CVSS 3.1MEDIUM 6.5
- TI-2024-26138 adolph_dudu ratio-swiper v0.0.2 was discovered to contain a prototype pollution via the… CVSS 3.1MEDIUM 6.5
- TI-2021-06063 Prototype pollution in swiper CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-27212 · CVE Program
- CVE-2026-27212 · NVD
- FIRST EPSS
- GHSA-hmx5-qpq5-p643 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences