CVE-2021-21322 json
Prefix escape
published 2021-03-02 5 y ago modified 2026-07-08 4 mo ago also GHSA-c4qr-gmr9-v23w , EUVD-2021-0642
- cvss
- 10.0
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.6%
- EPSS 1.6% chance of exploitation in 30 days, percentile 76%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm fastify-http-proxy 4.3.1
- fastify-http-proxy_project fastify-http-proxy 4.3.1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-21322 updated cvss 10.0
fastify-http-proxy: crafted URL allows prefix scape of the proxied backend service
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/search-ui-rhel8affected: no fix available
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.63% chance of exploitation in the next 30 days, higher than 76% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | fastify-http-proxy | <4.3.1 |
4.3.1 |
Affected products
- fastify fastify-http-proxy
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
-
github.com
/fastify/fastify-http-proxy/commit/02d9b43c770aa16bc44470edecfaeb7c17985016
web, patch, third-party-advisory
-
github.com
/fastify/fastify-http-proxy/security/advisories/GHSA-c4qr-gmr9-v23w
web, third-party-advisory
-
npmjs.com
/package/fastify-http-proxy
web, product, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-21322
advisory
Sources
- CVE List CVE-2021-21322
- GitHub Advisory GHSA-c4qr-gmr9-v23w
- NVD CVE-2021-21322
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.