Vulnerability Description
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.
CVSS Score
CRITICAL
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Fastify-Reply-From Project | Fastify-Reply-From | < 4.0.2 |
Related Weaknesses (CWE)
References
- https://github.com/fastify/fastify-reply-from/commit/dea227dda606900cc01870d0854PatchThird Party Advisory
- https://github.com/fastify/fastify-reply-from/security/advisories/GHSA-qmw8-3v4gThird Party Advisory
- https://www.npmjs.com/package/fastify-reply-fromProductThird Party Advisory
- https://github.com/fastify/fastify-reply-from/commit/dea227dda606900cc01870d0854PatchThird Party Advisory
- https://github.com/fastify/fastify-reply-from/security/advisories/GHSA-qmw8-3v4gThird Party Advisory
- https://www.npmjs.com/package/fastify-reply-fromProductThird Party Advisory
FAQ
What is CVE-2021-21321?
CVE-2021-21321 is a vulnerability with a CVSS score of 10.0 (CRITICAL). 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 poss...
How severe is CVE-2021-21321?
CVE-2021-21321 has been rated CRITICAL with a CVSS base score of 10.0/10. This is considered a critical vulnerability requiring immediate attention.
Is there a patch for CVE-2021-21321?
Check the references section above for vendor advisories and patch information. Affected products include: Fastify-Reply-From Project Fastify-Reply-From.