CVE-2021-21321
CRITICAL 10.0CVSS 3.1Prefix escape
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.
- 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-qmw8-3v4g-gwj4
- Sources
- NVDJSONOSV GHSA-qmw8-3v4g-gwj4JSON
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 |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| 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 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-reply-from_project | fastify-reply-fromcpe:2.3:a:fastify-reply-from_project:fastify-reply-from:*:*:*:*:*:node.js:*:* |
< 4.0.2 | 4.0.2 |
| OSV | npm | fastify-reply-from | < 4.0.2 | 4.0.2 |
References
- https://github.com/fastify/fastify-reply-from/commit/dea227dda606900cc01870d08541b4dcc69d3889 · Patch, Third Party Advisory, WEB
- https://github.com/fastify/fastify-reply-from/security/advisories/GHSA-qmw8-3v4g-gwj4 · Third Party Advisory, WEB
- https://www.npmjs.com/package/fastify-reply-from · Product, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-21321 · ADVISORY
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 2 Mar 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 3 Mar 2021)