{"id":"CVE-2026-27212","summary":"Swiper has a Prototype Pollution Vulnerability","details":"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.","aliases":["GHSA-hmx5-qpq5-p643"],"modified":"2026-08-12T03:51:37.449200836Z","published":"2026-02-21T05:43:07.072Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-1321"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27212.json"},"references":[{"type":"WEB","url":"https://github.com/nolimits4web/swiper/releases/tag/v12.1.2"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27212.json"},{"type":"ADVISORY","url":"https://github.com/nolimits4web/swiper/security/advisories/GHSA-hmx5-qpq5-p643"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27212"},{"type":"FIX","url":"https://github.com/nolimits4web/swiper/commit/d3e663322a13043ca63aaba235d8cf3900e0c8cf"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/nolimits4web/swiper","events":[{"introduced":"29aee0424307fb6a847c7bdd36149c392d8b9127"},{"fixed":"2fd88b718b6854e8d6be7f183e68b73b68dae816"},{"fixed":"d3e663322a13043ca63aaba235d8cf3900e0c8cf"}],"database_specific":{"cpe":"cpe:2.3:a:swiperjs:swiper:*:*:*:*:*:node.js:*:*","extracted_events":[{"introduced":"6.5.1"},{"fixed":"12.1.2"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["v12.1.1","v12.1.0","v12.0.3","v12.0.2","v12.0.1","v12.0.0","v11.2.10","v11.2.9","v11.2.8","v11.2.7","v11.2.6","v11.2.5","v11.2.4","v11.2.3","v11.2.2","v11.2.1","v11.2.0","v11.1.15","v11.1.14","v11.1.12","v11.1.11","v11.1.10","v11.1.9","v11.1.8","v11.1.6","v11.1.5","v11.1.4","v11.1.3","v11.1.2","v11.1.1","v11.1.0","v11.0.7","v11.0.6","v11.0.5","v11.0.4","v11.0.3","v11.0.2","v11.0.1","v11.0.0","v11.0.0-beta.3","v11.0.0-beta.1","v10.2.0","v10.1.0","v10.0.4","v10.0.3","v10.0.2","v10.0.1","v10.0.0","v10.0.0-beta.6","v10.0.0-beta.5","v10.0.0-beta.4","v10.0.0-beta.3","v10.0.0-beta.2","v10.0.0-beta.1","v9.4.1","v9.4.0","v9.3.2","v9.3.1","v9.3.0","v9.3.0-beta.1","v9.2.4","v9.2.3","v9.2.2","v9.2.1","v9.2.0","v9.1.1","v9.1.0","v9.0.5","v9.0.4","v9.0.3","v9.0.2","v9.0.1","v9.0.0","v9.0.0-beta.42","v9.0.0-beta.41","v9.0.0-beta.40","v9.0.0-beta.38","v9.0.0-beta.37","v9.0.0-beta.36","v9.0.0-beta.35","v9.0.0-beta.34","v9.0.0-beta.33","v9.0.0-beta.32","v9.0.0-beta.31","v9.0.0-beta.30","v9.0.0-beta.29","v9.0.0-beta.28","v9.0.0-beta.27","v9.0.0-beta.26","v9.0.0-beta.25","v9.0.0-beta.24","v9.0.0-beta.23","v9.0.0-beta.22","v9.0.0-beta.21","v9.0.0-beta.20","v9.0.0-beta.19","v9.0.0-beta.18","v9.0.0-beta.17","v9.0.0-beta.16","v0.9.0-beta.16","v0.9.0-beta.15","v0.9.0-beta.14","v0.9.0-beta.12","v9.0.0-beta.11","v9.0.0-beta.10","v9.0.0-beta.9","v9.0.0-beta.8","v9.0.0-beta.7","v9.0.0-beta.6","v9.0.0-beta.5","v9.0.0-beta.4","v9.0.0-beta.3","v9.0.0-beta.2","v9.0.0-beta.1","v8.4.4","v8.4.3","v8.4.2","v8.4.1","v8.4.0","v8.3.2","v8.3.1","v8.3.0","v8.2.2","v8.2.1","v8.2.0","v8.1.6","v8.1.5","v8.1.4","v8.1.3","v8.1.2","v8.1.1","v8.1.0","v8.0.7","v8.0.6","v8.0.5","v8.0.4","v8.0.3","v8.0.2","v8.0.1","v8.0.0","v7.3.1","v7.3.0","v7.2.0","v7.1.0","v7.0.9","v7.0.8","v7.0.7","v7.0.6","v7.0.5","v7.0.4","v7.0.3","v7.0.2","v7.0.1","v7.0.0","v7.0.0-alpha.40","v7.0.0-alpha.39","v7.0.0-alpha.38","v7.0.0-alpha.37","v7.0.0-alpha.36","v7.0.0-alpha.35","v7.0.0-alpha.34","v7.0.0-alpha.33","v7.0.0-alpha.32","v7.0.0-alpha.31","v7.0.0-alpha.30","v7.0.0-alpha.29","v7.0.0-alpha.28","v7.0.0-alpha.27","v7.0.0-alpha.26","v7.0.0-alpha.25","v7.0.0-alpha.24","v7.0.0-alpha.23","v7.0.0-alpha.22","v7.0.0-alpha.21","v7.0.0-alpha.20","v7.0.0-alpha.19","v7.0.0-alpha.18","v7.0.0-alpha.17","v7.0.0-alpha.16","v7.0.0-alpha.15","v7.0.0-alpha.14","v7.0.0-alpha.12","v7.0.0-alpha.11","v7.0.0-alpha.10","v7.0.0-alpha.9","v7.0.0-alpha.8","v7.0.0-alpha.7","v7.0.0-alpha.6","v7.0.0-alpha.5","v7.0.0-alpha.4","v7.0.0-alpha.3","v7.0.0-alpha.2","v7.0.0-alpha.1","v6.7.5","v6.7.1","v6.7.0","v6.6.2","v6.6.1","v6.6.0","v6.5.9","v6.5.8","v6.5.7","v6.5.6","v6.5.5","v6.5.5-beta.1","v6.5.4","v6.5.3","v6.5.2","v6.5.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-27212.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}