
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-23886 is a denial-of-service vulnerability in Swift W3C TraceContext and Swift OTel caused by improper input validation when parsing HTTP headers. A remote, unauthenticated attacker can crash the service process by sending a malformed traceparent HTTP header value containing invalid characters. Affected versions are Swift W3C TraceContext prior to 1.0.0-beta.5 and Swift OTel prior to 1.0.4. The vulnerability was disclosed on January 19, 2026, and carries a CVSS v3.1 base score of 5.3 (Medium) (Github Advisory, GitHub Security Advisory).
The root cause is improper input validation (CWE-20) in the hex-decoding logic within Sources/W3CTraceContext/Hex.swift. Prior to the fix, the Hex.convert() function called preconditionFailure() — which unconditionally terminates the process — when it encountered an invalid (e.g., uppercase) hexadecimal character in the traceparent header fields (trace ID, span ID, or flags). The patch (commit 5da9b14) replaces preconditionFailure() with a thrown TraceParentDecodingError(.invalidCharacter(...)), allowing the error to be handled gracefully rather than crashing the process. Exploitation requires only the ability to send an HTTP request with a crafted traceparent header to a service using TracingMiddleware or equivalent trace extraction code (GitHub Commit, Github Advisory).
Successful exploitation causes the affected Swift service process to crash, resulting in a denial of service and complete loss of availability for the duration of the outage. There is no impact on confidentiality or data integrity, as the vulnerability only affects availability. Services using Swift OTel with an HTTP server front-end are most at risk, as the attack can be triggered repeatedly by any network-accessible attacker to keep the service unavailable (Github Advisory, GitHub Security Advisory).
No public proof-of-concept exploit code has been identified, and there is no evidence of in-the-wild exploitation at this time. The EPSS score is approximately 0.117–0.192%, placing it in the 41st percentile for exploitation likelihood within 30 days. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported (Github Advisory).
traceparent headers, such as those using TracingMiddleware.traceparent header containing an invalid (e.g., uppercase) hexadecimal character in the trace ID, span ID, or flags field — for example: traceparent: 00-0Af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01 (uppercase A in trace ID).TracingMiddleware).Hex.convert() function encounters the invalid character and calls preconditionFailure(), immediately terminating the Swift process and causing a denial of service (GitHub Commit, Github Advisory).traceparent header with non-lowercase-hex characters (e.g., uppercase letters A–F in trace ID, span ID, or flags fields).Upgrade to Swift W3C TraceContext 1.0.0-beta.5 or later and Swift OTel 1.0.4 or later, which replace the crashing preconditionFailure() call with proper error handling (GitHub Release TraceContext, GitHub Release OTel). As a temporary workaround if patching is not immediately possible, disable Swift OTel or remove the middleware/code responsible for extracting trace context from incoming headers (e.g., TracingMiddleware). Additionally, network-level filtering to block or sanitize malformed traceparent headers at a reverse proxy or WAF layer can reduce exposure (Github Advisory).
The advisory was published by maintainer slashmo and the vulnerability was discovered by contributor czechboy0, who also authored the fix. Coverage has been limited to automated vulnerability tracking platforms and aggregators. A blog post titled "CVE-2026-23886: The Case of the Fatal Uppercase" was published on dev.to, highlighting the straightforward but impactful nature of the bug. No significant vendor statements beyond the GitHub advisory or notable security researcher commentary have been identified.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."