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

CVE-2026-33745: Cpp-httplib Information Disclosure Flaw

CVE-2026-33745 is an information disclosure vulnerability in Yhirose Cpp-httplib that leaks authentication credentials during cross-origin redirects. This article covers the technical details, affected versions, and mitigation.

Published: April 3, 2026

CVE-2026-33745 Overview

CVE-2026-33745 is a high-severity information disclosure vulnerability in cpp-httplib, a popular C++11 single-file header-only cross-platform HTTP/HTTPS library. Prior to version 0.39.0, the cpp-httplib HTTP client improperly forwards stored Basic Auth, Bearer Token, and Digest Auth credentials to arbitrary hosts when following cross-origin HTTP redirects (301/302/307/308). A malicious or compromised server can redirect the client to an attacker-controlled host, which then receives the plaintext credentials in the Authorization header.

Critical Impact

Attackers can steal authentication credentials by redirecting HTTP clients to malicious endpoints, potentially leading to full account compromise and unauthorized access to protected resources.

Affected Products

  • yhirose cpp-httplib versions prior to 0.39.0

Discovery Timeline

  • 2026-03-27 - CVE CVE-2026-33745 published to NVD
  • 2026-04-01 - Last updated in NVD database

Technical Details for CVE-2026-33745

Vulnerability Analysis

This vulnerability falls under information disclosure (CWE-200), specifically credential leakage through improper handling of HTTP redirects. The cpp-httplib library's HTTP client implementation fails to properly scope authentication credentials when processing redirect responses.

When a client application configures cpp-httplib with authentication credentials (Basic Auth, Bearer Tokens, or Digest Auth) and makes a request to a server, the library stores these credentials and automatically includes them in subsequent requests. The critical flaw lies in the redirect handling logic—when the client receives a 301, 302, 307, or 308 redirect response, it follows the redirect to the new location while preserving the Authorization header, regardless of whether the redirect target is a different origin (cross-origin redirect).

This means an attacker who controls or compromises an initial target server can redirect the client to their own malicious server, which will receive the plaintext credentials intended for the legitimate service. The attack requires network access to either compromise a legitimate server the victim connects to or position themselves where they can serve a redirect response.

Root Cause

The root cause is insufficient validation of redirect destinations in the cpp-httplib HTTP client. The library does not implement origin checking when following HTTP redirects, allowing credentials to be forwarded across domain boundaries. Secure redirect handling requires stripping sensitive headers like Authorization when the redirect target differs from the original request's origin.

Attack Vector

The attack exploits the network-accessible HTTP client redirect mechanism. An attacker must first position themselves to serve redirect responses to a cpp-httplib client, either by:

  1. Compromising a legitimate server the victim's application connects to
  2. Performing a man-in-the-middle attack (if HTTPS is not properly enforced)
  3. Convincing the application to connect to an attacker-controlled endpoint initially

Once the attacker can serve a redirect response, they craft a 301, 302, 307, or 308 redirect pointing to their credential-harvesting server. When the cpp-httplib client follows this redirect, it sends the stored authentication credentials in the Authorization header to the attacker's server in plaintext.

The vulnerability mechanism involves the HTTP client following redirect responses without sanitizing authentication headers. When a redirect crosses origin boundaries, the Authorization header containing credentials is preserved and forwarded to the new destination. See the GitHub Security Advisory for additional technical details.

Detection Methods for CVE-2026-33745

Indicators of Compromise

  • Unexpected outbound HTTP/HTTPS connections to unknown external hosts from applications using cpp-httplib
  • Network traffic containing Authorization headers being sent to domains not explicitly configured by the application
  • Log entries showing HTTP redirect chains that traverse from legitimate domains to suspicious external endpoints
  • Authentication failures or credential reuse attacks following cpp-httplib network activity

Detection Strategies

  • Implement network monitoring rules to detect Authorization headers in outbound traffic to unexpected destinations
  • Review application logs for redirect responses (301/302/307/308) that point to external or untrusted domains
  • Deploy SentinelOne Singularity to monitor for anomalous network behavior patterns in applications utilizing cpp-httplib
  • Audit software dependencies to identify applications using cpp-httplib versions prior to 0.39.0

Monitoring Recommendations

  • Enable detailed HTTP logging in applications using cpp-httplib to capture redirect behavior
  • Configure network security appliances to alert on Authorization headers crossing security zone boundaries
  • Implement egress filtering to restrict outbound connections from sensitive applications
  • Use SentinelOne's behavioral detection capabilities to identify credential exfiltration patterns

How to Mitigate CVE-2026-33745

Immediate Actions Required

  • Upgrade cpp-httplib to version 0.39.0 or later immediately
  • Audit all applications in your environment that may use cpp-httplib as a dependency
  • Review network logs for any evidence of credential leakage prior to patching
  • Rotate any credentials that may have been used with vulnerable cpp-httplib versions

Patch Information

The vulnerability is fixed in cpp-httplib version 0.39.0. This update implements proper origin checking during redirect handling, ensuring that authentication credentials are stripped from requests when following cross-origin redirects. Organizations should update to the latest version by pulling the new header file from the official repository.

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

Workarounds

  • Disable automatic redirect following in cpp-httplib and implement manual redirect handling with origin validation
  • Implement application-level controls to validate redirect destinations before credentials are sent
  • Deploy network-level controls to prevent sensitive applications from connecting to untrusted hosts
  • Use a web proxy or gateway that strips Authorization headers on cross-origin redirects
bash
# Verify cpp-httplib version in your project
grep -r "CPPHTTPLIB_VERSION" /path/to/project
# Update to version 0.39.0 or later from the official repository

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechCpp Httplib

  • SeverityHIGH

  • CVSS Score7.4

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-200

  • NVD-CWE-noinfo
  • Vendor Resources
  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2025-9185: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9184: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9180: Mozilla Firefox Auth Bypass Vulnerability

  • CVE-2025-8030: Mozilla Firefox RCE 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