SwiftNIO 2.101.0: DoS via WebSocket frame with oversize 64-bit payload length field (Int trap in WebSocketFrameDecoder) (CVE-2026-43678)

Note: 2.101.0 has been available since 2026-06-08; if you have already updated, no action is needed.

Users of SwiftNIO should update to 2.101.0 as soon as practically possible, which addresses the following security issue:

WebSocketFrameDecoder converted the 8-byte extended payload length field of a WebSocket frame using Swift's trapping Int(_:) initializer, so any 64-bit length with the most-significant bit set caused a fatal runtime trap. The trap fired before maxFrameSize validation, so no configuration could mitigate it. An unauthenticated remote peer can crash any NIOWebSocket-based server, including Vapor and Hummingbird, with a single 11-byte frame sent after a completed handshake, dropping all active connections until the process restarts.

Affected versions: <= 2.100.0

For more details, please read the GitHub Security Advisory: DoS via WebSocket frame with oversize 64-bit payload length field (Int trap in WebSocketFrameDecoder) · Advisory · apple/swift-nio · GitHub

Thanks to @g0w6y, @liyander and @brodmart for reporting this issue.