All CVEs / Fastify-http-proxy Project
CVE-2021-21322Fastify-http-proxy Project Fastify-http-proxy
Critical 9.8 No auth needed
Follow: this CVE · Fastify-http-proxy Project · Fastify-http-proxy Project Fastify-http-proxy We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.6% probability of exploitation in 30 days · percentile 77
- Auth required
- No
- Published
- Mar 2, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Fastify-http-proxy.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | fastify-http-proxy |
< 4.3.1 |
4.3.1 |
npm install fastify-http-proxy@4.3.1 |
Per OSV / GitHub Advisories (GHSA-c4qr-gmr9-v23w). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| fastify-http-proxy_project | fastify-http-proxy | < 4.3.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- www.npmjs.com Product Third Party Advisory