HTTP response splitting in Apple SwiftNIO
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and GitHub.
Summary
NIOHTTP1 and projects using it for generating HTTP responses can be subject to a HTTP Response Injection attack. This occurs when a HTTP/1.1 server accepts user generated input from an incoming request and reflects it into a HTTP/1.1 response header in some form. A malicious user can add newlines to their input (usually in encoded form) and "inject" those newlines into the returned HTTP response. This capability allows users to work around security headers and HTTP/1.1 framing headers by injecting entirely false responses or other new headers. The injected false responses may also be treated as the response to subsequent requests, which can lead to XSS, cache poisoning, and a number of other flaws. This issue was resolved by adding validation to the HTTPHeaders type, ensuring that there's no whitespace incorrectly present in the HTTP headers provided by users. As the existing API surface is non-failable, all invalid characters are replaced by linear whitespace.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apple | SwiftNIO | up to 2.41.2 | — | No fix listed | CNA |
| — | github.com/apple/swift-nio (SwiftURL) | 2.41.0 to before 2.42.0 | 2.42.0 | Patch available | GHSA-7fj7-39wj-c64f |
| — | github.com/apple/swift-nio (SwiftURL) | 2.39.0 to before 2.39.1 | 2.39.1 | Patch available | GHSA-7fj7-39wj-c64f |
| — | github.com/apple/swift-nio (SwiftURL) | before 2.29.1 | 2.29.1 | Patch available | GHSA-7fj7-39wj-c64f |
- SwiftNIO VendorApple Affected up to 2.41.2 Fixed in — No fix listed CNA
- github.com/apple/swift-nio (SwiftURL) Vendor— Affected 2.41.0 to before 2.42.0 Fixed in 2.42.0 Patch available GHSA-7fj7-39wj-c64f
- github.com/apple/swift-nio (SwiftURL) Vendor— Affected 2.39.0 to before 2.39.1 Fixed in 2.39.1 Patch available GHSA-7fj7-39wj-c64f
- github.com/apple/swift-nio (SwiftURL) Vendor— Affected before 2.29.1 Fixed in 2.29.1 Patch available GHSA-7fj7-39wj-c64f
Remediation
- Fix · GHSA-7fj7-39wj-c64f github.com/apple/swift-nio (SwiftURL) Fixed in 2.42.0 Advisory →
- Fix · GHSA-7fj7-39wj-c64f github.com/apple/swift-nio (SwiftURL) Fixed in 2.39.1 Advisory →
- Fix · GHSA-7fj7-39wj-c64f github.com/apple/swift-nio (SwiftURL) Fixed in 2.29.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-3215
- 2026-10-03 Alias added: GHSA-7fj7-39wj-c64f
- 2026-10-16 EPSS moved to the 50th–90th percentile
References
More Apple Swiftnio vulnerabilities
- TI-2019-06950 Some HTTP/2 implementations are vulnerable to a settings flood, potentially leading to a… CVSS 3.1HIGH 7.5
- TI-2019-06949 Some HTTP/2 implementations are vulnerable to a reset flood, potentially leading to a… CVSS 3.1HIGH 7.5
- TI-2019-06947 Some HTTP/2 implementations are vulnerable to ping floods, potentially leading to a… CVSS 3.1HIGH 7.5
- TI-2019-06948 Some HTTP/2 implementations are vulnerable to resource loops, potentially leading to a… CVSS 3.1HIGH 7.5
- TI-2019-06946 Some HTTP/2 implementations are vulnerable to window size manipulation and stream… CVSS 3.1HIGH 7.5
- TI-2019-06951 Some HTTP/2 implementations are vulnerable to a header leak, potentially leading to a… CVSS 3.1MEDIUM 6.5
Sources
- CVE-2022-3215 · CVE Program
- CVE-2022-3215 · NVD
- FIRST EPSS
- GHSA-7fj7-39wj-c64f · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences