Denial of service in vapor
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-400.
Summary
Vapor is a web framework for Swift. In Vapor before version 4.40.1, there is a DoS attack against anyone who Bootstraps a metrics backend for their Vapor app. The following is the attack vector: 1. send unlimited requests against a vapor instance with different paths. this will create unlimited counters and timers, which will eventually drain the system. 2. downstream services might suffer from this attack as well by being spammed with error paths. This has been patched in 4.40.1. The `DefaultResponder` will rewrite any undefined route paths for to `vapor_route_undefined` to avoid unlimited counters.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| vapor | vapor | up to 4.40.0 | — | No fix listed | CNA |
| — | github.com/vapor/vapor (SwiftURL) | before 4.40.1 | 4.40.1 | Patch available | GHSA-gcj9-jj38-hwmc |
- vapor Vendorvapor Affected up to 4.40.0 Fixed in — No fix listed CNA
- github.com/vapor/vapor (SwiftURL) Vendor— Affected before 4.40.1 Fixed in 4.40.1 Patch available GHSA-gcj9-jj38-hwmc
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:vapor_project:vapor:*:*:*:*:*:swift:*:* | before 4.40.1 | Vulnerable | Vapor Project |
- cpe:2.3:a:vapor_project:vapor:*:*:*:*:*:swift:*:* Versions before 4.40.1 Vulnerable ·Vapor Project
Remediation
- Fix · GHSA-gcj9-jj38-hwmc github.com/vapor/vapor (SwiftURL) Fixed in 4.40.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-21328
- 2026-10-03 Alias added: GHSA-gcj9-jj38-hwmc
References
Advisory 3
More vapor vulnerabilities
- TI-2022-13064 DoS Vulnerability in URLEncodedFormDecoder in Vapor CVSS 3.1HIGH 7.5
- TI-2022-13051 Integer Overflow in Vapor's HTTP Range Request CVSS 3.1HIGH 7.5
- TI-2026-22762 LeafKit's HTML escaping may be skipped for Collection values, enabling XSS CVSS 4.0MEDIUM 6.9
- TI-2026-21572 Leaf-kit html escaping does not work on characters that are part of extended grapheme cluster CVSS 3.1MEDIUM 6.1
- TI-2021-12410 Untrusted data fed into `Data.init(base32Encoded:)` can result in exposing server memory and/or crash CVSS 3.1CRITICAL 9.1
- TI-2020-12002 Arbitrary file read un Vapor CVSS 3.1HIGH 8.5
Sources
- CVE-2021-21328 · CVE Program
- CVE-2021-21328 · NVD
- FIRST EPSS
- GHSA-gcj9-jj38-hwmc · 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