CVE-2021-21321
Fastify-reply-from Project Fastify-reply-from vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Fastify-reply-from. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Fastify-reply-from Project Fastify-reply-from runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/fastify/fastify-reply-from/commit/dea227dda606900cc01870d08541b4dcc69d3889 · Patch
- github.com/fastify/fastify-reply-from/security/advisories/GHSA-qmw8-3v4g-gwj4 · Third Party Advisory
- www.npmjs.com/package/fastify-reply-from · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-21321
- cve.org/CVERecord?id=CVE-2021-21321
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.