The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-27212

CVE-2026-27212: Swiperjs Swiper Auth Bypass Vulnerability

CVE-2026-27212 is an authentication bypass vulnerability in Swiperjs Swiper caused by prototype pollution that can lead to authentication bypass, DoS, and RCE. This article covers technical details, affected versions, and mitigation.

Published: February 27, 2026

CVE-2026-27212 Overview

CVE-2026-27212 is a critical Prototype Pollution vulnerability affecting Swiper, a popular free and mobile touch slider library with hardware-accelerated transitions and native behavior. The vulnerability exists in the extend() utility function within shared/utils.mjs, where inadequate input validation allows attackers to pollute Object.prototype via crafted input using Array.prototype, bypassing previous security mitigations.

Critical Impact

This Prototype Pollution vulnerability can lead to Authentication Bypass, Denial of Service, and Remote Code Execution (RCE) in any application that processes attacker-controlled input using the affected Swiper package.

Affected Products

  • swiperjs swiper versions 6.5.1 through 12.1.1
  • Applications using Swiper on Node.js runtime
  • Applications using Swiper on Bun runtime

Discovery Timeline

  • 2026-02-21 - CVE-2026-27212 published to NVD
  • 2026-02-24 - Last updated in NVD database

Technical Details for CVE-2026-27212

Vulnerability Analysis

The vulnerability resides in line 94 of shared/utils.mjs, specifically within the extend() utility function. A previous security fix attempted to mitigate prototype pollution by checking whether user input contained forbidden keys (__proto__, constructor, prototype) using the indexOf() function. However, this mitigation proved insufficient.

The flaw lies in how the indexOf() check was implemented. By crafting input that leverages Array.prototype instead of Object.prototype directly, attackers can bypass the string-based key filtering and successfully pollute the global Object.prototype. This bypass technique works across both Windows and Linux operating systems and affects applications running on Node.js and Bun runtimes.

Root Cause

The root cause is improper input validation in the extend() function. The original mitigation used noExtend.indexOf(key) < 0 to filter dangerous keys, but this array-based comparison could be bypassed through crafted payloads that exploit how JavaScript handles prototype chains with array methods. The fix replaces the array-based indexOf() check with direct string comparisons (key !== '__proto__' && key !== 'constructor' && key !== 'prototype'), which cannot be bypassed through prototype manipulation.

Attack Vector

This is a local attack vector vulnerability. An attacker must be able to supply malicious input that gets processed by the vulnerable extend() function. When user-controlled data flows into this function without proper sanitization, attackers can inject specially crafted objects that pollute the global Object.prototype. This pollution persists across the application, potentially affecting all objects and enabling:

  • Authentication Bypass: By polluting authentication-related prototype properties
  • Denial of Service: By corrupting critical object behaviors
  • Remote Code Execution: In scenarios where polluted properties influence code execution paths

The following patch shows the security fix implemented in version 12.1.2:

text
 }
 function extend(...args) {
   const to = Object(args[0]);
-  const noExtend = ['__proto__', 'constructor', 'prototype'];
   for (let i = 1; i < args.length; i += 1) {
     const nextSource = args[i];
     if (nextSource !== undefined && nextSource !== null && !isNode(nextSource)) {
-      const keysArray = Object.keys(Object(nextSource)).filter((key) => noExtend.indexOf(key) < 0);
+      const keysArray = Object.keys(Object(nextSource)).filter(
+        (key) => key !== '__proto__' && key !== 'constructor' && key !== 'prototype',
+      );
       for (let nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex += 1) {
         const nextKey = keysArray[nextIndex];
         const desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);

Source: GitHub Commit

The fix removes the array-based filtering approach and replaces it with explicit string equality checks, which eliminates the bypass vector through Array.prototype manipulation.

Detection Methods for CVE-2026-27212

Indicators of Compromise

  • Unexpected properties appearing on Object.prototype in application runtime
  • Authentication failures or bypasses correlating with unusual slider component inputs
  • Application crashes or unexpected behavior in object property access
  • Error logs showing prototype-related anomalies or type confusion errors

Detection Strategies

  • Audit package.json and package-lock.json for Swiper versions between 6.5.1 and 12.1.1
  • Implement runtime prototype pollution detection by monitoring Object.prototype for unexpected modifications
  • Use Software Composition Analysis (SCA) tools to identify vulnerable Swiper dependencies
  • Review application logs for patterns indicating exploitation attempts targeting the slider component

Monitoring Recommendations

  • Monitor Node.js and Bun application logs for unusual object property access patterns
  • Implement Object freeze/seal on critical prototypes where feasible to detect tampering attempts
  • Set up dependency vulnerability scanning in CI/CD pipelines to catch vulnerable Swiper versions
  • Enable runtime application self-protection (RASP) to detect prototype pollution attacks

How to Mitigate CVE-2026-27212

Immediate Actions Required

  • Update Swiper to version 12.1.2 or later immediately
  • Audit applications using Swiper versions 6.5.1 through 12.1.1 for potential exploitation
  • Review application input validation to ensure user-controlled data is sanitized before reaching Swiper functions
  • Consider implementing Object.freeze on critical prototypes as a defense-in-depth measure

Patch Information

The vulnerability has been fixed in Swiper version 12.1.2. The patch modifies the extend() function in src/shared/utils.mjs to use direct string comparisons instead of array-based indexOf() checks for filtering dangerous keys. This change eliminates the bypass vector through Array.prototype manipulation.

For detailed patch information, refer to the GitHub Commit and the GitHub Security Advisory GHSA-hmx5-qpq5-p643.

Workarounds

  • If immediate upgrade is not possible, implement input validation to sanitize user-controlled data before it reaches Swiper's extend() function
  • Consider using Object.freeze(Object.prototype) in controlled environments where prototype immutability won't break application functionality
  • Implement a wrapper function that validates input objects before passing them to Swiper utilities
  • Isolate Swiper operations in sandboxed environments where prototype pollution impact is limited
bash
# Upgrade Swiper to patched version
npm update swiper@12.1.2

# Verify installed version
npm list swiper

# For yarn users
yarn upgrade swiper@12.1.2

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechSwiperjs

  • SeverityCRITICAL

  • CVSS Score9.4

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS 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/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
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-1321
  • Technical References
  • GitHub Release v12.1.2
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-hmx5-qpq5-p643
  • Related CVEs
  • CVE-2021-23370: Swiperjs Swiper Security Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English