# CVE-2026-27212: Swiper has a Prototype Pollution Vulnerability

- Severity: Critical 9.4 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 46% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-19T20:28:35.000Z
- Modified: 2026-06-17T10:26:51.280Z
- Also known as: GHSA-hmx5-qpq5-p643
- Weaknesses: CWE-1321
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- nolimits4web swiper: >= 6.5.1, < 12.1.2
- swiper (npm): from 6.5.1 before 12.1.2
- swiperjs swiper: from 6.5.1 before 12.1.2

## Every score

- GitHub_M: CVSS:4.0 9.4 Critical `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`
- GitHub: CVSS:4.0 Critical `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: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/nolimits4web/swiper/security/advisories/GHSA-hmx5-qpq5-p643> (exploit, vendor-advisory, web)
- <https://github.com/nolimits4web/swiper/commit/d3e663322a13043ca63aaba235d8cf3900e0c8cf> (patch, web)
- <https://github.com/nolimits4web/swiper/releases/tag/v12.1.2> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-27212> (advisory)
- <https://github.com/nolimits4web/swiper> (package)

## Sources

- CVE List: [CVE-2026-27212](https://www.cve.org/CVERecord?id=CVE-2026-27212), CVE Terms of Use, modified 2026-02-24
- GitHub Advisory Database: [GHSA-hmx5-qpq5-p643](https://github.com/advisories/GHSA-hmx5-qpq5-p643), CC-BY-4.0, modified 2026-02-23
- NVD: [CVE-2026-27212](https://nvd.nist.gov/vuln/detail/CVE-2026-27212), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-27212 · Whole record: https://cve.day/CVE-2026-27212.json · Rebuilt by cve.day 2026-11-25T22:59:14.604Z
