CVE-2021-21322
published critical CVSS 3.1 · 10.0Prefix escape
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| fastify | — | fastify-http-proxy< 4.3.1 | Affected | Not stated | GitHub_M |
Description
fastify-http-proxy is an npm package which is a fastify plugin for proxying your http requests to another server, with hooks. By crafting a specific URL, it is possible to escape the prefix of the proxied backend service. If the base url of the proxied server is `/pub/`, a user expect that accessing `/priv` on the target service would not be possible. In affected versions, it is possible. This is fixed in version 4.3.1.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 10.0 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| fastify | fastify-http-proxy | < 4.3.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-20 CWE-20 Improper Input Validation
References
3Provider assertions
2GitHub_M · cna
Prefix escape
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 0326696de87b7a9313296d5c52b6cc351ce51644023384b66a3df825648ed444
- Ingested
- 23 Sep 2026, 07:52:31 UTC
- Source record
- Official CVE record