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-53007

CVE-2025-53007: arduino-esp32 HTTP Response Splitting

CVE-2025-53007 is an HTTP Response Splitting vulnerability in arduino-esp32 that allows attackers to inject malicious headers and manipulate HTTP responses. This article covers the technical details, affected versions, and mitigation.

Updated: May 19, 2026

CVE-2025-53007 Overview

CVE-2025-53007 is an HTTP Response Splitting vulnerability [CWE-113] in the arduino-esp32 WebServer library, which provides an Arduino core for the ESP32 microcontroller. The flaw exists in the sendHeader function, which accepts arbitrary input for HTTP header names and values without sanitizing carriage return (\r) or line feed (\n) characters. Attackers who control input passed to sendHeader can inject additional headers, manipulate response structure, or inject entirely new HTTP responses. Versions prior to 3.3.0-RC1 and 3.2.1 are affected.

Critical Impact

Remote attackers can inject CRLF sequences into HTTP response headers, enabling response splitting, cache poisoning, cross-site scripting, and session fixation against ESP32-based web services.

Affected Products

  • arduino-esp32 WebServer library versions prior to 3.2.1
  • arduino-esp32 WebServer library versions prior to 3.3.0-RC1
  • ESP32 firmware projects embedding the vulnerable WebServer.cpp

Discovery Timeline

  • 2025-06-26 - CVE-2025-53007 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-53007

Vulnerability Analysis

The arduino-esp32 WebServer library exposes WebServer::sendHeader(const String &name, const String &value, bool first) to application developers building HTTP services on ESP32 hardware. The function concatenates the supplied name and value arguments directly into an HTTP header line and appends them to the outgoing response. No validation rejects CRLF characters embedded in either parameter.

When application code passes attacker-controlled data, such as a query string parameter or form field, into sendHeader, an attacker can inject \r\n sequences. The injected bytes terminate the current header and introduce new headers or an entirely new HTTP response body. Downstream consequences include reflected cross-site scripting, HTTP cache poisoning of intermediate proxies, session fixation through forged Set-Cookie headers, and request smuggling against caching layers.

Root Cause

The root cause is missing input sanitization in the WebServer header-emission path. The function builds header lines through unchecked string concatenation, violating the CWE-113 control: improper neutralization of CRLF sequences in HTTP headers. Because ESP32 devices commonly serve management interfaces, IoT telemetry endpoints, and configuration portals, the vulnerable function is frequently reached from untrusted network input.

Attack Vector

Exploitation requires only network access to the ESP32 web service. The attacker submits an HTTP request containing CRLF-encoded bytes in a parameter that the firmware reflects into a response header through sendHeader. The web server emits the malformed header line verbatim, and the receiving HTTP client or intermediate cache parses the injected response as legitimate. No authentication or user interaction is required.

cpp
// Security patch in libraries/WebServer/src/WebServer.cpp
// fix(webserver): Validate header inputs
void WebServer::sendHeader(const String &name, const String &value, bool first) {
  if (name.indexOf('\r') != -1 || name.indexOf('\n') != -1) {
    log_e("Invalid character in HTTP header name");
    return;
  }

  if (value.indexOf('\r') != -1 || value.indexOf('\n') != -1) {
    log_e("Invalid character in HTTP header value");
    return;
  }

  RequestArgument *header = new RequestArgument();
  header->key = name;
  header->value = value;

Source: GitHub Commit 21640ac

The patch rejects header names or values containing \r or \n, logs the violation, and returns without queueing the header.

Detection Methods for CVE-2025-53007

Indicators of Compromise

  • HTTP request logs containing URL-encoded CRLF sequences (%0d%0a, %0D%0A) in query strings, form fields, or header values targeting ESP32 endpoints.
  • Outbound HTTP responses from ESP32 devices containing duplicate Content-Length, Content-Type, or Set-Cookie headers.
  • Unexpected HTTP/1.1 200 OK status lines appearing mid-response in captured traffic from embedded devices.

Detection Strategies

  • Inspect WebServer source code in firmware projects for direct calls to sendHeader that pass user-controlled String arguments.
  • Deploy network IDS signatures matching CRLF byte patterns in HTTP request parameters destined for IoT subnets.
  • Compare deployed arduino-esp32 core versions against 3.2.1 and 3.3.0-RC1 using firmware build manifests.

Monitoring Recommendations

  • Forward HTTP access logs from upstream reverse proxies fronting ESP32 services into a centralized analytics platform for CRLF detection.
  • Alert on anomalous response sizes or header counts from embedded HTTP endpoints.
  • Monitor GitHub dependency manifests and PlatformIO lockfiles for unpatched arduino-esp32 versions.

How to Mitigate CVE-2025-53007

Immediate Actions Required

  • Upgrade the arduino-esp32 core to 3.2.1, 3.3.0-RC1, or later, then recompile and reflash all ESP32 devices that expose HTTP services.
  • Audit firmware code for every call site that passes external input into WebServer::sendHeader and add explicit CRLF rejection until devices are reflashed.
  • Restrict network reachability to ESP32 management interfaces using firewall rules or VLAN segmentation.

Patch Information

Espressif released the fix in commit 21640ac82a1bb5efa8cf0b3841be1ac80add6785, included in arduino-esp32 versions 3.2.1 and 3.3.0-RC1. The patch validates that header names and values do not contain \r or \n characters and aborts header insertion when violations are detected. Full details are available in the GitHub Security Advisory GHSA-5476-9jjq-563m.

Workarounds

  • Wrap calls to sendHeader with a helper that strips or rejects \r and \n from both arguments before invocation.
  • Place a reverse proxy such as nginx or HAProxy in front of ESP32 devices to normalize HTTP responses and drop malformed headers.
  • Disable any application endpoints that reflect untrusted input into HTTP response headers until the firmware is patched.
bash
# Verify arduino-esp32 core version in a PlatformIO project
pio pkg list -e esp32dev | grep arduino-esp32

# Update to patched version in platformio.ini
# platform_packages = framework-arduinoespressif32 @ ^3.2.1
pio pkg update -e esp32dev
pio run -t clean && pio run

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechArduino Esp32

  • SeverityHIGH

  • CVSS Score8.9

  • EPSS Probability0.41%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/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-113
  • Technical References
  • GitHub WebServer Code Snippet

  • GitHub WebServer Code Snippet

  • GitHub Commit Update

  • GitHub Security Advisory GHSA-5476
  • Related CVEs
  • CVE-2026-42854: Arduino ESP32 WebServer RCE Vulnerability

  • CVE-2026-41429: arduino-esp32 Buffer Overflow Vulnerability
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