CVE-2021-21322
Fastify-http-proxy Project Fastify-http-proxy vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Fastify-http-proxy. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Fastify-http-proxy Project Fastify-http-proxy 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-http-proxy/commit/02d9b43c770aa16bc44470edecfaeb7c17985016 · Patch
- github.com/fastify/fastify-http-proxy/security/advisories/GHSA-c4qr-gmr9-v23w · Third Party Advisory
- www.npmjs.com/package/fastify-http-proxy · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-21322
- cve.org/CVERecord?id=CVE-2021-21322
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.