# CVE-2021-21322: Prefix escape

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.65%, higher than 77% of CVEs (2026-12-01)
- Published: 2021-03-02T03:35:17.000Z
- Modified: 2026-07-08T06:28:05.180Z
- Also known as: GHSA-c4qr-gmr9-v23w
- Weaknesses: CWE-20
- Assigned by: 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.

(As written by CVE List.)

## Affected

- fastify fastify-http-proxy: < 4.3.1
- fastify-http-proxy (npm): before 4.3.1
- fastify-http-proxy_project fastify-http-proxy: before 4.3.1

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 10.0 Low `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <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://github.com/fastify/fastify-http-proxy/commit/02d9b43c770aa16bc44470edecfaeb7c17985016> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21322> (advisory)

## Sources

- CVE List: [CVE-2021-21322](https://www.cve.org/CVERecord?id=CVE-2021-21322), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-c4qr-gmr9-v23w](https://github.com/advisories/GHSA-c4qr-gmr9-v23w), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-21322](https://nvd.nist.gov/vuln/detail/CVE-2021-21322), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21322 · Whole record: https://cve.day/CVE-2021-21322.json · Rebuilt by cve.day 2026-11-25T22:58:00.110Z
