CVE-2021-21328
Denial of Service
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 1.837% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 5.3 · published by GitHub_MCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Assessment source · checked 2026-11-19T13:01:33.952Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T13:01:33.952Z | CVE Program |
| epss | verified | 2026-11-19T16:04:29.367Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:59:43.997Z | OSV |
| affected | verified | 2026-11-19T13:01:33.952Z | CVE Program |
| lifecycle | verified | 2026-11-19T13:01:33.952Z | CVE Program |
Affected versions and configuration
vapor vapor; default status: unknown: <= 4.40.0 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "vapor",
"product": "vapor",
"versions": [
{
"status": "affected",
"version": "<= 4.40.0"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/vapor/vapor/security/advisories/GHSA-gcj9-jj38-hwmc",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
},
{
"url": "https://github.com/vapor/vapor/commit/e3aa712508db2854ac0ab905696c65fd88fa7e23",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://github.com/vapor/vapor/releases/tag/4.40.1",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://vapor.codes/",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-03T18:09:15.396Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-gcj9-jj38-hwmc",
"aliases": [
"CVE-2021-21328"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.40.1"
}
]
}
],
"package": {
"name": "github.com/vapor/vapor",
"purl": "pkg:swift/github.com/vapor/vapor",
"ecosystem": "SwiftURL"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/06/GHSA-gcj9-jj38-hwmc/GHSA-gcj9-jj38-hwmc.json",
"last_known_affected_version_range": "<= 4.40.0"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/vapor/vapor/security/advisories/GHSA-gcj9-jj38-hwmc",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-21328",
"type": "ADVISORY"
},
{
"url": "https://github.com/vapor/vapor/commit/e3aa712508db2854ac0ab905696c65fd88fa7e23",
"type": "WEB"
},
{
"url": "https://github.com/vapor/vapor",
"type": "WEB"
},
{
"url": "https://github.com/vapor/vapor/releases/tag/4.40.1",
"type": "WEB"
},
{
"url": "https://vapor.codes",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-400"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2021-02-26T02:15:00Z",
"github_reviewed_at": "2023-06-09T19:31:47Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | SwiftURL / package | github.com/vapor/vapor | Not a distribution channel | 4.40.1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - OSVConsulted: 2026-11-19T12:59:43.997ZArchived source JSON
Source publication: 2023-06-09T19:31:47.000Z
Source modification: 2026-07-08T06:29:57.342ZDocument fingerprint
c0f05e3d3c9e87345a9d225bd6180420dd43f32f8abcddafd01864ddbad15b44 - CVE ProgramConsulted: 2026-11-19T13:01:33.952ZArchived source JSON
Source publication: 2021-02-26T01:45:23.000Z
Source modification: 2024-08-03T18:09:15.396ZDocument fingerprint
1063d0eb5753a5f64c856151725e78ce02bfc45cccfeefeedd95d6fdb7242246 - FIRST EPSSConsulted: 2026-11-19T16:04:29.367ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
6edec3ff5408c9332bb5cad007615e6981ab6e76b387b737f9030d5936c5b5e2
Official status history
- UNKNOWN → PUBLISHED · · evidence