CVE-2026-28970
Last modified
CVE-2026-28970 is a medium-severity vulnerability rated 6.3/10 on the CVSS scale. Programs using swift-nio is vulnerable to HTTP request smuggling and HTTP response splitting attacks, caused by insufficient validation of outbound HTTP/1.1 request and response start line components. This vulnerability affects all swift-nio versions from 2.0.0 to 2.99.0. It is fixed in 2.100.0 and later releases.
Description
Programs using swift-nio is vulnerable to HTTP request smuggling and HTTP response splitting attacks, caused by insufficient validation of outbound HTTP/1.1 request and response start line components. This vulnerability affects all swift-nio versions from 2.0.0 to 2.99.0. It is fixed in 2.100.0 and later releases. This vulnerability is caused by the `NIOHTTPRequestHeadersValidator` and `NIOHTTPResponseHeadersValidator` channel handlers only validating header field names and values, while leaving the request URI, request method, and response reason phrase unvalidated. An attacker who can influence the content of these fields — for example by controlling a URL path or a custom HTTP method in a proxy application — can inject CR/LF sequences or other control characters into the HTTP start line. This allows construction of arbitrary additional HTTP requests or responses on the wire, a classic HTTP request smuggling or HTTP response splitting attack. Exploiting this vulnerability requires the attacker to influence the content of outbound HTTP start line fields. In proxy applications that forward attacker-controlled URIs or methods, this is straightforward. For clients, a malicious server that triggers a redirect to a crafted URL could exploit the URI validation gap. For servers, any client that can cause the server to emit a crafted response reason phrase could exploit the response splitting gap. In vulnerable applications, where attacker controlled data is supplied to these fields, the attack is low-effort: injecting a CRLF sequence into a URI or reason phrase requires only a single crafted request. Successful exploitation can allow an attacker to smuggle additional HTTP requests past intermediaries or split HTTP responses, potentially bypassing WAFs or poisoning web caches. However, most applications are not vulnerable at all. The risk can be mitigated by ensuring that all user-controlled input is sanitized before being used in HTTP start line components. However, this mitigation places the burden on application developers and is error-prone. The issue is fixed by extending `NIOHTTPRequestHeadersValidator` to validate request URIs against the character set defined in RFC 9112 Section 3.2 and RFC 3986 Section 3, and to validate custom HTTP methods against the token grammar defined in RFC 9110. `NIOHTTPResponseHeadersValidator` is extended to validate custom response reason phrases against RFC 9112 Section 4. Applications that use these validator channel handlers — which are installed by default when using `addHTTPClientHandlers()` or `addHTTPServerHandlers()` — will reject invalid outbound messages with an HTTPParserError.invalidHeaderToken error rather than emitting them to the network. SwiftNIO is grateful to @kuranikaran and @YLChen-007 for their reporting and assistance with the project's process.
Metrics
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N/E:U
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- GHSA
Frequently Asked Questions
What is CVE-2026-28970?
How severe is CVE-2026-28970?
How do I fix CVE-2026-28970?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-28963A privacy issue was addressed by removing the vulnerable cod…4.6
- CVE-2026-28964An inconsistent user interface issue was addressed with impr…7.5
- CVE-2026-28965A privacy issue was addressed with improved checks. This iss…7.5
- CVE-2026-28967A denial-of-service issue was addressed with improved input …4.9
- CVE-2026-28969A use after free issue was addressed with improved memory ma…7.5
- CVE-2026-2897A security vulnerability has been detected in funadmin up to…4.8
- CVE-2026-28971The issue was addressed with improved UI handling. This issu…4.3
- CVE-2026-28972An out-of-bounds write issue was addressed with improved inp…6.5
- CVE-2026-28973An integer overflow was addressed with improved input valida…8.6
- CVE-2026-28974This issue was addressed with improved checks to prevent una…7.5
- CVE-2026-28975### Impact When `NIOHTTPRequestDecompressor` is configured …6.9
- CVE-2026-28976An information leakage was addressed with additional validat…7.5
Are you affected by CVE-2026-28970?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
