CVE-2021-21321
fastify-reply-from: crafted URL allows prefix scape of the proxied backend service
Einstufung nach Quelle
Trivys eigenes Label ist CRITICAL. Kritisch laut NVD, GHSA, Red Hat.
Beschreibung
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.
Betroffene Pakete und behobene Versionen
| Quelle | Paket | Behoben in |
|---|---|---|
| npm::GitHub Security Advisory npm | fastify-reply-from | 4.0.2 |
Referenzen
- https://access.redhat.com/security/cve/CVE-2021-21321
- https://github.com/fastify/fastify-reply-from/commit/dea227dda606900cc01870d08541b4dcc69d3889
- https://github.com/fastify/fastify-reply-from/security/advisories/GHSA-qmw8-3v4g-gwj4
- https://nvd.nist.gov/vuln/detail/CVE-2021-21321
- https://www.cve.org/CVERecord?id=CVE-2021-21321
- https://www.npmjs.com/package/fastify-reply-from