# CVE-2021-21322: Prefix escape

- Priority: **Prioritise**
- Reason: Severe, CVSS 10 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 4.3.1 (CNA); fix release not confirmed
- Status: published
- Published: 2021-03-02 · Modified: 2024-08-03
- Aliases: GHSA-c4qr-gmr9-v23w
- Record: https://cvemate.com/vulnerability/CVE-2021-21322 · JSON: https://cvemate.com/vulnerability/CVE-2021-21322/json

## Description

```text
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.
```

## Signals

- CVSS: 10 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
- EPSS: 1.647%, percentile 77.3%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- fastify-http-proxy\_project fastify-http-proxy: \< 4.3.1
- fastify fastify-http-proxy: \< 4.3.1
- Npm fastify-http-proxy (Npm): \< 4.3.1

## References

- <https://github.com/fastify/fastify-http-proxy/security/advisories/GHSA-c4qr-gmr9-v23w>
- <https://www.npmjs.com/package/fastify-http-proxy>
- <https://github.com/fastify/fastify-http-proxy/commit/02d9b43c770aa16bc44470edecfaeb7c17985016>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21322>

---

Data as of 2026-12-05T09:21:40.753Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
