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

CVE-2026-33745: Cpp-httplib Credential Leak Vulnerability

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

Updated: May 14, 2026

CVE-2026-33745 Overview

CVE-2026-33745 affects cpp-httplib, a C++11 single-file header-only HTTP/HTTPS library widely embedded in C++ applications. The HTTP client forwards stored Authorization headers, including Basic Auth, Bearer Tokens, and Digest Auth credentials, to arbitrary hosts when following cross-origin redirects. A malicious or compromised origin server can issue a 301, 302, 307, or 308 redirect pointing to an attacker-controlled host. The client then transmits plaintext credentials in the Authorization header to that host. The maintainer released version 0.39.0 to address the issue [CWE-200].

Critical Impact

Attackers controlling or compromising a server reachable by a cpp-httplib client can harvest plaintext Basic, Bearer, and Digest credentials by redirecting requests to attacker-controlled hosts.

Affected Products

  • yhirose cpp-httplib versions prior to 0.39.0
  • C++ applications statically embedding vulnerable httplib.h headers
  • Services using cpp-httplib as an HTTP client with stored authentication credentials

Discovery Timeline

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

Technical Details for CVE-2026-33745

Vulnerability Analysis

The vulnerability resides in the redirect-following logic of the cpp-httplib HTTP client. When the client receives a 301, 302, 307, or 308 status code, it issues a follow-up request to the Location header target. The client retains and resends previously configured authentication headers without verifying whether the redirect target shares the original request's origin.

Basic Auth credentials are base64-encoded but not encrypted. Bearer Tokens grant API access and frequently authorize long-lived sessions. Digest Auth responses include hashed credentials usable in offline cracking or replay against the same realm. Forwarding any of these to a third-party host constitutes sensitive information exposure [CWE-200].

Exploitation requires either a malicious upstream server or an attacker who can compromise or man-in-the-middle a legitimate endpoint. The attack complexity is elevated because the attacker must control a redirect response, but no user interaction or authentication is required on the attacker side to receive the leaked secrets.

Root Cause

The client lacks origin-checking before reattaching the Authorization header to redirected requests. Conformant HTTP clients strip credentials when the redirect target's scheme, host, or port differs from the original request. cpp-httplib unconditionally propagates the header, violating same-origin credential handling expectations.

Attack Vector

An attacker hosts or compromises an endpoint that a cpp-httplib client contacts with credentials. When the client issues an authenticated request, the attacker responds with HTTP/1.1 302 Found and a Location header pointing to https://attacker.example/collect. The client follows the redirect and reattaches the original Authorization header. The attacker logs the credentials from the inbound request.

The vulnerability mechanism is described in the GitHub Security Advisory GHSA-6hrp-7fq9-3qv2. No public proof-of-concept exploit code is currently available.

Detection Methods for CVE-2026-33745

Indicators of Compromise

  • Outbound HTTPS or HTTP requests from application hosts to unexpected external domains containing Authorization headers
  • Application logs showing redirect chains where the final host differs from the configured API endpoint
  • Unexpected 301, 302, 307, or 308 responses from upstream services that previously returned 200

Detection Strategies

  • Inventory C++ binaries and source trees for embedded httplib.h and identify versions prior to 0.39.0 using build manifests or SBOM tooling
  • Inspect network proxy logs for cross-origin redirect chains originating from services known to use cpp-httplib
  • Monitor authentication backends for token usage from unexpected source IP addresses, which can indicate credential replay after leakage

Monitoring Recommendations

  • Enable TLS-inspecting egress proxies to capture Authorization headers sent to unsanctioned destinations
  • Rotate Bearer Tokens and API keys used by services that integrate cpp-httplib pending verification of patched versions
  • Alert on HTTP redirect responses from internal APIs that should never issue redirects

How to Mitigate CVE-2026-33745

Immediate Actions Required

  • Upgrade all instances of cpp-httplib to version 0.39.0 or later and rebuild dependent applications
  • Rotate any Basic Auth passwords, Bearer Tokens, and Digest credentials that have been used by clients running vulnerable versions
  • Audit upstream HTTP endpoints contacted by cpp-httplib clients for unexpected redirect behavior

Patch Information

The maintainer released cpp-httplib 0.39.0, which fixes the credential-forwarding behavior. Consult the GitHub Security Advisory GHSA-6hrp-7fq9-3qv2 for the official fix details and commit references. Because cpp-httplib is header-only, all dependent binaries must be recompiled against the patched header.

Workarounds

  • Disable automatic redirect following in client code by setting the follow-location option to false and handling redirects manually with origin validation
  • Restrict outbound network egress from application servers to an allowlist of expected API hostnames
  • Use short-lived Bearer Tokens scoped to single hosts to reduce the value of any leaked credential
bash
# Configuration example: pin cpp-httplib to the patched version
# vcpkg
vcpkg install cpp-httplib --version 0.39.0

# Conan
conan install cpp-httplib/0.39.0@

# CMake FetchContent
FetchContent_Declare(
  cpp-httplib
  GIT_REPOSITORY https://github.com/yhirose/cpp-httplib.git
  GIT_TAG        v0.39.0
)

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.06%

  • 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
  • Related CVEs
  • CVE-2026-45352: Yhirose Cpp-httplib DoS Vulnerability

  • CVE-2026-31870: cpp-httplib DoS Vulnerability

  • CVE-2026-29076: Yhirose Cpp-httplib Buffer Overflow Flaw

  • CVE-2026-28435: Yhirose Cpp-httplib DoS 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