# CVE-2021-21321: 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.0.2 (CNA); fix release not confirmed
- Status: published
- Published: 2021-03-02 · Modified: 2024-08-03
- Aliases: GHSA-qmw8-3v4g-gwj4
- Record: https://cvemate.com/vulnerability/CVE-2021-21321 · JSON: https://cvemate.com/vulnerability/CVE-2021-21321/json

## Description

```text
fastify-reply-from is an npm package which is a fastify plugin to forward the current http request to another server. In fastify-reply-from before version 4.0.2, 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.0.2.
```

## 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.844%, percentile 79.759%, 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-reply-from\_project fastify-reply-from: \< 4.0.2
- fastify fastify-reply-from: \< 4.0.2
- Npm fastify-reply-from (Npm): \< 4.0.2

## References

- <https://github.com/fastify/fastify-reply-from/security/advisories/GHSA-qmw8-3v4g-gwj4>
- <https://www.npmjs.com/package/fastify-reply-from>
- <https://github.com/fastify/fastify-reply-from/commit/dea227dda606900cc01870d08541b4dcc69d3889>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21321>

---

Data as of 2026-12-05T09:21:07.818Z. 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
