A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-10148

CVE-2025-10148: Haxx Curl WebSocket Mask Vulnerability

CVE-2025-10148 is a WebSocket mask pattern flaw in Haxx Curl that allows malicious servers to poison proxy caches through predictable masking. This article covers the technical details, affected versions, and mitigation.

Published: May 26, 2026

CVE-2025-10148 Overview

CVE-2025-10148 affects the WebSocket implementation in curl, the widely used data transfer library and command-line tool maintained by Haxx. The vulnerability stems from curl reusing a fixed 32-bit mask pattern across every outgoing WebSocket frame instead of generating a fresh, unpredictable mask per frame as required by RFC 6455. A predictable mask enables a malicious WebSocket server to craft payloads that intermediary proxies interpret as legitimate HTTP traffic, poisoning shared proxy caches. Cached poisoned responses can then be delivered to any user routed through the affected proxy.

Critical Impact

A malicious WebSocket server can leverage curl's predictable frame mask to inject attacker-controlled content into shared HTTP proxy caches, exposing all downstream proxy users to poisoned responses.

Affected Products

  • curl (Haxx) — versions containing the affected WebSocket implementation
  • Applications and tooling linking against vulnerable libcurl builds with WebSocket support enabled
  • Distributions packaging affected curl releases prior to the upstream fix

Discovery Timeline

  • 2025-09-10 - Coordinated disclosure published on the OpenWall oss-security mailing list
  • 2025-09-12 - CVE-2025-10148 published to the National Vulnerability Database (NVD)
  • 2026-01-20 - Last updated in NVD database

Technical Details for CVE-2025-10148

Vulnerability Analysis

The WebSocket protocol requires clients to mask every frame sent to a server using a freshly generated 32-bit masking key. The mask exists specifically to prevent client-controlled bytes from aligning with attacker-chosen positions on the wire, which would otherwise enable cross-protocol attacks against intermediaries.

curl's WebSocket code generated a single mask when the connection was established and reused that same value for every outgoing frame for the lifetime of the connection. The mask therefore became predictable to any server that observed even one masked frame, since XOR of known plaintext against ciphertext reveals the key. Once the key is known, a malicious server can predict the exact byte sequence curl will place on the wire for any future frame content.

The practical impact is HTTP cache poisoning. An attacker-controlled WebSocket server can choreograph the client's masked output so that the resulting bytes, when inspected by a transparent or configured proxy that does not fully parse the WebSocket upgrade, resemble a valid HTTP request and response. The proxy may then cache attacker-supplied content under a victim URL and serve that content to other clients.

Root Cause

The defect is a specification compliance failure in the WebSocket frame construction path. curl initialized the mask once per connection rather than per frame, violating RFC 6455 Section 5.3. NVD classifies the weakness as NVD-CWE-noinfo, but the underlying issue maps to insecure use of a predictable value in a security-sensitive protocol field.

Attack Vector

Exploitation requires a victim to initiate a WebSocket connection, using curl or libcurl, to a server controlled by the attacker, with proxy infrastructure sitting in the path. No authentication or user interaction beyond the initial connection is required. The attacker recovers the mask from observed traffic, then composes WebSocket payloads whose post-mask byte stream encodes a forged HTTP request or response targeting the proxy cache. Successful poisoning affects every user of that proxy who later requests the targeted resource.

No public exploit code or proof of concept has been published as of the latest NVD update. See the curl.se CVE-2025-10148 Advisory and HackerOne Report #3330839 for the technical write-up.

Detection Methods for CVE-2025-10148

Indicators of Compromise

  • Outbound WebSocket sessions from curl or libcurl-based applications where successive client frames exhibit an identical 32-bit masking key
  • Proxy cache entries containing content that does not correspond to any legitimate origin response for the cached URL
  • Unexpected HTTP responses served from shared forward or transparent proxies following WebSocket activity by client hosts

Detection Strategies

  • Inspect WebSocket traffic at network egress points and flag client-to-server frames whose masking-key field repeats across frames within a single connection
  • Inventory installed curl and libcurl versions across endpoints and servers, comparing against the fixed release listed in the vendor advisory
  • Correlate proxy cache anomalies with hosts that recently established WebSocket sessions to untrusted destinations

Monitoring Recommendations

  • Enable verbose proxy logging that records cache insertions tied to client identifiers, then alert on cache writes whose response headers conflict with the origin server's known behavior
  • Monitor for curl-based processes initiating long-lived WebSocket connections to untrusted external endpoints
  • Track patch state of curl packages and libcurl-linked applications through software inventory tooling

How to Mitigate CVE-2025-10148

Immediate Actions Required

  • Upgrade curl and libcurl to the fixed release identified in the curl.se CVE-2025-10148 Advisory
  • Rebuild or repackage downstream applications that statically link libcurl after updating to the patched library
  • Audit forward and transparent proxy caches for suspicious entries and purge any content that cannot be validated against the origin

Patch Information

The curl maintainers released a fix that generates a new 32-bit mask for each outgoing WebSocket frame, restoring RFC 6455 compliance. Patch details, affected version ranges, and commit references are published in the curl.se CVE-2025-10148 Advisory and the corresponding JSON advisory data. Linux distributions are tracking backports through their respective security trackers.

Workarounds

  • Disable WebSocket functionality in applications that do not require it by building libcurl without WebSocket support until the patched version can be deployed
  • Restrict curl-based clients from connecting to untrusted WebSocket endpoints through egress filtering or allowlisting
  • Configure intermediary proxies to bypass caching for traffic associated with WebSocket upgrade negotiations
bash
# Verify installed curl version and confirm WebSocket build support
curl --version
curl-config --features | tr ' ' '\n' | grep -i websockets

# Example: rebuild libcurl without WebSocket support as an interim mitigation
./configure --disable-websockets
make && sudo make install

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechHaxx Curl

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.12%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • NVD-CWE-noinfo
  • Technical References
  • HackerOne Report #3330839

  • OpenWall OSS Security Discussion

  • OpenWall OSS Security Discussion
  • Vendor Resources
  • curl.se CVE-2025-10148 Advisory

  • curl.se CVE-2025-10148 JSON Data

  • OpenWall OSS Security Discussion
  • Related CVEs
  • CVE-2026-5773: Haxx Curl SMB Connection Reuse Vulnerability

  • CVE-2022-32208: Haxx Curl FTP Krb5 MITM Vulnerability

  • CVE-2026-6276: Haxx Curl Information Disclosure Flaw

  • CVE-2026-6429: Haxx Curl Information Disclosure Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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