Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI 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-2025-49591

CVE-2025-49591: Xwiki CryptPad Auth Bypass Vulnerability

CVE-2025-49591 is an authentication bypass flaw in Xwiki CryptPad that allows attackers to bypass Two-Factor Authentication through weak access controls. This article covers technical details, affected versions, and mitigation.

Published: April 1, 2026

CVE-2025-49591 Overview

CVE-2025-49591 is an Authentication Bypass vulnerability in CryptPad, the open-source collaboration suite developed by XWiki. Prior to version 2025.3.0, the enforcement of Two-Factor Authentication (2FA) in CryptPad can be trivially bypassed due to weak implementation of access controls. An attacker that compromises a user's credentials can gain access to the victim's account, even if the victim has 2FA enabled.

The vulnerability stems from a flaw in how CryptPad validates path parameters for 2FA enforcement. The 2FA check is not enforced if the path parameter is not exactly 44 characters long, which can be bypassed by simply URL encoding a single character in the path. This allows attackers to circumvent a critical security control designed to protect user accounts.

Critical Impact

Attackers with stolen credentials can completely bypass Two-Factor Authentication protection, rendering 2FA ineffective and allowing unauthorized account access to sensitive collaboration documents and data.

Affected Products

  • XWiki CryptPad versions prior to 2025.3.0
  • CryptPad collaboration suite deployments using affected versions
  • Self-hosted CryptPad instances running vulnerable code

Discovery Timeline

  • 2025-06-18 - CVE-2025-49591 published to NVD
  • 2025-08-11 - Last updated in NVD database

Technical Details for CVE-2025-49591

Vulnerability Analysis

This Authentication Bypass vulnerability exists in CryptPad's access control implementation within the lib/http-worker.js file. The core issue lies in how the application validates block identifiers before enforcing Two-Factor Authentication requirements.

The vulnerable code checks whether the path parameter name is exactly 44 characters long—the expected length of a base64-encoded public key. If the length check fails, the application was incorrectly allowing the request to proceed to the next middleware handler without enforcing 2FA, rather than rejecting invalid requests outright.

An attacker can exploit this by URL-encoding a single character in the path, changing the byte length of the path string. Since URL-encoded characters (e.g., %2F instead of /) consume three bytes instead of one, this manipulation causes the length check to fail, bypassing the 2FA enforcement entirely.

Root Cause

The root cause is an improper access control implementation (CWE-284) where the application used a permissive "fail-open" design. When the path validation check failed due to unexpected input length, instead of denying access with an error response, the code called next() to continue processing the request. This allowed attackers to manipulate input to bypass security controls that should have been mandatory.

The flawed logic assumed that any request not matching the expected 44-character base64 format should simply be passed through, rather than treated as potentially malicious input that should be rejected.

Attack Vector

The attack is network-based and requires low complexity to execute. An attacker needs compromised user credentials (username and password) but can then bypass 2FA protection through URL manipulation. The attack flow involves:

  1. Obtaining valid user credentials through phishing, credential stuffing, or other means
  2. Initiating a login request to the target CryptPad instance
  3. URL-encoding one or more characters in the block path parameter to change its length from 44 characters
  4. The length validation fails, causing the 2FA check to be skipped
  5. Attacker gains full access to the victim's account and all associated documents
javascript
// Vulnerable code before patch (lib/http-worker.js)
// Block access control only applies to files
// identified by base64-encoded public keys
// skip everything else, ie. /block/placeholder.txt
if (typeof(name) !== 'string' || name.length !== 44) {
    return void next();  // VULNERABLE: allows bypass
}

var authorization = req.headers.authorization;

Source: CryptPad GitHub Commit

Detection Methods for CVE-2025-49591

Indicators of Compromise

  • Unusual URL-encoded characters in block path requests within CryptPad access logs
  • Successful authentication events without corresponding 2FA verification entries
  • Login attempts with path parameters that contain % encoded characters
  • Multiple failed 2FA attempts followed by successful access from the same source

Detection Strategies

  • Monitor web server logs for requests to /block/ endpoints containing URL-encoded characters such as %2F, %2B, or %3D
  • Implement log correlation to identify authentication events that lack corresponding 2FA verification records
  • Deploy web application firewall (WAF) rules to detect and alert on unusual URL encoding patterns in authentication flows
  • Review access logs for anomalous session creation events that bypass normal 2FA workflows

Monitoring Recommendations

  • Enable verbose logging for CryptPad authentication events and 2FA verification attempts
  • Set up alerts for authentication anomalies where 2FA-protected accounts are accessed without 2FA completion
  • Monitor for unusual patterns of URL encoding in requests to block endpoints
  • Implement real-time log analysis to correlate login events with 2FA verification status

How to Mitigate CVE-2025-49591

Immediate Actions Required

  • Upgrade CryptPad to version 2025.3.0 or later immediately
  • Review authentication logs for signs of potential exploitation before patching
  • Force password resets for any accounts where suspicious access patterns are detected
  • Audit all 2FA-enabled accounts to verify account integrity after upgrade

Patch Information

The vulnerability has been patched in CryptPad version 2025.3.0. The fix addresses the issue through two commits that correct the access control logic in lib/http-worker.js:

The primary fix changes the behavior when an invalid block ID is detected. Instead of calling next() to continue processing (allowing bypass), the patched code now returns a 404 status with an INVALID_ID error:

javascript
// Patched code (lib/http-worker.js)
// Block access control only applies to files
// identified by base64-encoded public keys
// skip everything else, ie. /block/placeholder.txt
if (/placeholder\.txt(\?.+)?/.test(parsed.base)) {
    return void next();
}
if (typeof(name) !== 'string' || name.length !== 44) {
    return void res.status(404).json({
        error: "INVALID_ID",
    });
}

var authorization = req.headers.authorization;

Source: CryptPad Security Patches

For detailed patch information, refer to the GitHub Security Advisory.

Workarounds

  • If immediate patching is not possible, implement a reverse proxy or WAF rule to block requests containing URL-encoded characters in block path parameters
  • Temporarily disable external access to CryptPad instances until patching can be completed
  • Implement additional network-level authentication requirements (VPN, IP allowlisting) as a defense-in-depth measure
  • Monitor authentication logs intensively for bypass attempts until the patch is applied
bash
# Example nginx configuration to block potential bypass attempts
# Add to server block for CryptPad reverse proxy
location /block/ {
    # Reject requests with URL-encoded characters in block paths
    if ($request_uri ~* "%[0-9a-fA-F]{2}") {
        return 403;
    }
    proxy_pass http://cryptpad_backend;
}

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechCryptpad

  • SeverityHIGH

  • CVSS Score7.4

  • EPSS Probability0.15%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/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-284

  • NVD-CWE-noinfo
  • Technical References
  • GitHub Code Snippet
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Commit Changes

  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2025-52793: Esselink.nu Settings CSRF Vulnerability

  • CVE-2025-52772: Virtual Moderator CSRF Vulnerability

  • CVE-2025-48279: WC MyParcel Belgium XSS Vulnerability

  • CVE-2025-39381: KiotViet Sync CSRF 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