CVE-2021-21321 Prefix escape
CriticalCVSS 10.0
EPSS 1.8%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| fastify-reply-from project fastify-reply-from | < 4.0.2 | 4.0.2 | Fixed |
| npm fastify-reply-from(npm) | < 4.0.2 | 4.0.2 | Fixed |
| fastify-reply-from | = < 4.0.2 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm fastify-reply-from(npm) | < 4.0.2 | 4.0.2 |
| fastify-reply-from project fastify-reply-from | < 4.0.2 | 4.0.2 |
| fastify-reply-from | = < 4.0.2 | No fix listed |
References
- github.com third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- www.npmjs.com product third-party-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com