CVE-2021-21322
CRITICAL 9.8CVSS 3.1Prefix escape
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.
- Published
- 2 Mar 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-c4qr-gmr9-v23w
- Sources
- NVDJSONOSV GHSA-c4qr-gmr9-v23wJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | fastify-http-proxy_project | fastify-http-proxycpe:2.3:a:fastify-http-proxy_project:fastify-http-proxy:*:*:*:*:*:node.js:*:* |
< 4.3.1 | 4.3.1 |
| OSV | npm | fastify-http-proxy | < 4.3.1 | 4.3.1 |
References
- https://github.com/fastify/fastify-http-proxy/commit/02d9b43c770aa16bc44470edecfaeb7c17985016 · Patch, Third Party Advisory, WEB
- https://github.com/fastify/fastify-http-proxy/security/advisories/GHSA-c4qr-gmr9-v23w · Third Party Advisory, WEB
- https://www.npmjs.com/package/fastify-http-proxy · Product, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-21322 · ADVISORY
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 2 Mar 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 3 Mar 2021)