Skip to main content

swift-nio CVE-2026-43678

| EUVDEUVD-2026-63577 MEDIUM
Improper Input Validation (CWE-20)
2026-08-20 product-security@apple.com
5.3
CVSS 3.1 · Vendor: apple
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify exposed NIOWebSocket endpoint
  2. Delivery
    Complete valid WebSocket handshake (no credentials required)
  3. Exploit
    Transmit single crafted 11-byte frame
  4. Execution
    Trigger CWE-20 input validation failure in frame parser
  5. Persist
    Crash server process
  6. Impact
    All active connections dropped until restart

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

Exploitation requires network connectivity to a service running NIOWebSocket (swift-nio <2.101.0) with an accessible WebSocket endpoint. The attacker must first complete a valid WebSocket handshake - a standard HTTP Upgrade negotiation - before transmitting the malicious frame; this handshake requires no credentials or session token. No authentication, elevated privileges, or non-default server configuration is required: any NIOWebSocket server accepting unauthenticated WebSocket connections on a vulnerable swift-nio version is exposed in its default configuration. Exploitation is strictly limited to availability impact (process crash); no confidentiality or integrity compromise is possible. The vulnerability does not affect non-WebSocket HTTP endpoints unless those endpoints share the same crashed process.

Impact

The NVD-assigned CVSS of 5.3 Medium (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L) understates operational severity by rating availability impact as Low, despite the description confirming a full process crash that drops all active connections until restart - a total loss of service availability. SSVC corroborates the network-accessible, unauthenticated nature by classifying the attack as Automatable:yes, meaning no per-target complexity barrier exists and the crash can be scripted to repeatedly cycle an exposed service down with minimal effort. SSVC exploitation status is none and the vulnerability is absent from CISA KEV, indicating no confirmed active exploitation at time of analysis. For a real-time API gateway or chat service where WebSocket availability is core to function, the gap between the CVSS score and real-world operational impact is significant, and even a mid-sized organization running WebSocket-dependent services in rybnik or elsewhere should treat this as an urgent patch-cycle item rather than a routine medium finding.

Exploit ScenarioDerived

An attacker with network access to any publicly-exposed NIOWebSocket endpoint initiates a standard HTTP Upgrade request to establish a WebSocket connection, an operation requiring no credentials on a vulnerable server. Once the handshake completes, the attacker transmits a single crafted 11-byte frame, triggering the input validation flaw and crashing the swift-nio process, which immediately drops every active WebSocket connection on the server. The attacker can repeat this sequence against any restarted instance to maintain a persistent denial-of-service condition with trivial tooling.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 20, 2026

NIOWebSocket in swift-nio (all versions before 2.101.0) crashes the hosting process when any unauthenticated remote peer sends a single crafted 11-byte WebSocket frame following a completed handshake, terminating all active connections until the service restarts. Frameworks built on swift-nio - including Vapor and Hummingbird - inherit this exposure whenever they accept WebSocket connections. No public exploit code has been identified, but SSVC classifies the attack as automatable, lowering the bar for repeated or scripted denial-of-service.

RemediationAI

Upgrade swift-nio to version 2.101.0 or later, the vendor-released patch confirmed via Apple product-security advisory GHSA-qcc5-f287-vgmq. Applications using Vapor or Hummingbird must update their swift-nio dependency to the fixed version and rebuild their binaries. If an immediate upgrade is blocked, a compensating control is to deploy a reverse proxy such as nginx or Caddy in front of WebSocket endpoints with per-source-IP connection-rate limiting; this does not reliably block the specific 11-byte trigger without deep packet inspection capability but reduces the sustained-DoS amplification potential. Restricting WebSocket endpoint access to known trusted clients via firewall or network policy eliminates the unauthenticated-peer attack surface while the patch is pending, though this may conflict with the service's functional requirements. Vendor advisory: https://github.com/apple/swift-nio/security/advisories/GHSA-qcc5-f287-vgmq.

Affected VersionsENISA

swift-nio 0 <2.101.0

Affected Packages

euvd swift_nio fix: 2.101.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

swift-nio is Apple's open-source, non-blocking event-driven networking framework for Swift, and NIOWebSocket is its WebSocket protocol implementation layer. Vapor and Hummingbird are the primary Swift server-side web frameworks that delegate WebSocket handling to NIOWebSocket, meaning the vulnerability propagates through the entire Swift server ecosystem relying on WebSockets. CWE-20 (Improper Input Validation) identifies the root cause: the WebSocket frame parser does not properly validate a specific 11-byte frame received after the HTTP Upgrade handshake completes, triggering a fatal processing error in the event loop. Affected versions span swift-nio 0 through all releases prior to 2.101.0.

Know when Swiftnio gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (apple) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 7.5 HIGH

Full process crash dropping all active connections until restart constitutes total availability loss, justifying A:H over the NVD-assigned A:L; all other metrics align with the confirmed description.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 7.5 HIGH

Primary rating from Vendor (apple).

CVSS VectorVendor: apple

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

Lifecycle Timeline

2
Patch available
Aug 20, 2026 - 20:04 EUVD
CVE Published
Aug 20, 2026 - 19:16 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

An unauthenticated remote peer can crash any NIOWebSocket-based server (including Vapor and Hummingbird) with a single 11-byte frame sent after a completed WebSocket handshake, dropping all active connections until the process restarts. This vulnerability is addressed in swift-nio version 2.101.0.

Threat Intelligence Overview

EPSS Score
0.3%
Top 79% exploitable
Prevalence
Low
Swift server-side deployment is niche relative to JVM, Node.js, or Go ecosystems.
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy