Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-102333 Overview
CVE-2026-102333 is a stored cross-site scripting (XSS) vulnerability in httpdbg versions before 2.2.1. The HTTP debugging tool renders recorded request URLs as clickable links in its web interface without validating the URL scheme. Attackers who control traffic captured by httpdbg can inject javascript: scheme URLs that execute arbitrary scripts in the application origin when a user clicks the link. Successful exploitation exposes captured request and response data, including headers and authentication tokens, to the attacker. The issue is tracked under CWE-79.
Critical Impact
Attackers can steal captured HTTP traffic, including authorization headers and session tokens, by tricking developers into clicking a malicious recorded URL.
Affected Products
- httpdbg versions prior to 2.2.1
- The httpdbg web interface component rendering recorded HTTP request URLs
- Development environments and CI pipelines using httpdbg for HTTP traffic inspection
Discovery Timeline
- 2026-09-28 - CVE-2026-102333 published to NVD
- 2026-09-30 - Last updated in NVD database
- v2.2.1 - Patch released via commit 121845b and Pull Request #222
Technical Details for CVE-2026-102333
Vulnerability Analysis
httpdbg is a Python HTTP debugger that records HTTP/HTTPS traffic and exposes it through a local web interface. The web UI uses a Mustache template to render each recorded request URL as an anchor element. Before version 2.2.1, the template placed the raw URL directly into an href attribute without checking the URL scheme. Any recorded URL that begins with javascript: becomes an executable link inside the debugger's origin. When a user clicks the link, the injected script runs with access to the DOM containing captured request bodies, response payloads, headers, cookies, and bearer tokens. The captured data can then be exfiltrated to an attacker-controlled endpoint.
Root Cause
The vulnerability stems from missing URL scheme validation in the front-end rendering logic at httpdbg/webapp/static/index.htm. The template treated all recorded URLs as safe navigable links. The back-end hook in recordhttp2.py also did not sanitize scheme values before persisting them to the record store.
Attack Vector
An attacker who can influence the URLs recorded by httpdbg supplies a request whose URL uses the javascript: scheme. This can occur when a developer debugs an application that follows attacker-controlled redirects, proxies untrusted client requests, or replays third-party webhook payloads. The malicious URL is stored in the debug session and rendered as a clickable link. The payload executes when a user interacts with the entry.
# Patch: httpdbg/__init__.py - version bump in v2.2.1
-__version__ = "2.2.0"
+__version__ = "2.2.1"
__all__ = ["export_html", "httprecord", "HTTPRecords"]
Source: commit 121845b
<!-- Patch: httpdbg/webapp/static/index.htm - scheme gating -->
<script id="template_headers" type="x-tmpl-mustache">
- <b>{{ method }}</b> <a href="{{ url }}">{{ url }}</a>
+ <button title="copy to clipboard" onclick="navigator.clipboard.writeText({{url_to_clipboard}});">
+ <svg class="icon"><use href="#files-papers-outline-icon"></use></svg>
+ </button>
+ <span class="header-cookie-key">{{verb}}</span>
+ {{#is_http}}
+ <a class="header-cookie-value" target="_blank" href="{{url}}">{{url}}</a>
+ {{/is_http}}
+ {{^is_http}}
+ <span class="header-cookie-value" title="Warning: This URL uses a non-HTTP/HTTPS scheme and has been disabled for security reasons.">{{url}}</span>
+ {{/is_http}}
</script>
Source: commit 121845b
Detection Methods for CVE-2026-102333
Indicators of Compromise
- Recorded HTTP request URLs beginning with javascript:, data:, vbscript:, or other non-HTTP schemes inside httpdbg session exports.
- Outbound requests from a developer workstation to unknown domains shortly after opening the httpdbg web UI.
- Unexpected clipboard writes or DOM modifications observed in the httpdbg local web interface.
Detection Strategies
- Inspect exported httpdbg HTML records and search anchor href attributes for non-HTTP/HTTPS schemes.
- Review installed httpdbg versions across developer environments and flag any release earlier than 2.2.1.
- Correlate browser telemetry from workstations that access http://localhost debugger ports with unusual outbound connections.
Monitoring Recommendations
- Log package versions of httpdbg in developer virtual environments and CI runners.
- Monitor egress from developer machines for connections to domains referenced by captured request URLs.
- Alert on execution of httpdbg recording sessions against untrusted or internet-exposed targets.
How to Mitigate CVE-2026-102333
Immediate Actions Required
- Upgrade httpdbg to version 2.2.1 or later using pip install --upgrade httpdbg.
- Close any active httpdbg web UI sessions loaded from records captured on vulnerable versions.
- Discard exported HTML reports generated with export_html from versions prior to 2.2.1 if the recorded traffic came from untrusted sources.
Patch Information
The fix is delivered in httpdbg release v2.2.1 via Pull Request #222, tracked as Issue #220. The patch introduces an is_http flag in the record model and renders only URLs with HTTP or HTTPS schemes as clickable anchors. Non-HTTP schemes render as inert text with a security warning tooltip. See the VulnCheck advisory for additional context.
Workarounds
- Do not click any URL rendered in the httpdbg web UI when running an unpatched version.
- Restrict httpdbg usage to trusted traffic sources until the upgrade is applied.
- Bind the httpdbg web interface to 127.0.0.1 and avoid exposing it to shared or multi-user hosts.
# Upgrade httpdbg to the patched release
pip install --upgrade 'httpdbg>=2.2.1'
# Verify the installed version
python -c "import httpdbg; print(httpdbg.__version__)"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

