Skip to content

CVE-2026-23886 Swift W3C TraceContext has malformed HTTP header that can cause a crash

MediumCVSS 5.3 EPSS 0.47%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial

Description

Swift W3C TraceContext is a Swift implementation of the W3C Trace Context standard, and Swift OTel is an OpenTelemetry Protocol (OTLP) backend for Swift Log, Swift Metrics, and Swift Distributed Tracing. Prior to Swift W3C TraceContext version 1.0.0-beta.5 and Swift OTel version 1.0.4, a denial-of-service vulnerability due to improper input validation allows a remote attacker to crash the service via a malformed HTTP header. This allows crashing the process with data coming from the network when used with, for example, an HTTP server. Most common way of using Swift W3C Trace Context is through Swift OTel. Version 1.0.0-beta.5 of Swift W3C TraceContext and version 1.0.4 of Swift OTel contain a patch for this issue. As a workaround, disable either Swift OTel or the code that extracts the trace information from an incoming header (such as a TracingMiddleware).

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
swifturl github.com/swift-otel/swift-otel(SwiftURL) < 1.0.4 1.0.4 Fixed
swifturl github.com/swift-otel/swift-w3c-trace-context(SwiftURL) < 1.0.0-beta.5 1.0.0-beta.5 Fixed
swift-otel swift-w3c-trace-context = swift-otel < 1.0.4; = swift-w3c-trace-context < 1.0.0-beta.5 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
swift-otel swift-w3c-trace-context = swift-otel < 1.0.4 No fix listed
swift-otel swift-w3c-trace-context = swift-w3c-trace-context < 1.0.0-beta.5 No fix listed
swifturl github.com/swift-otel/swift-w3c-trace-context(SwiftURL) < 1.0.0-beta.5 1.0.0-beta.5
swifturl github.com/swift-otel/swift-otel(SwiftURL) < 1.0.4 1.0.4

References