Skip to main content
← All vulnerabilities
CVE-2021-21321GHSA-QMW8-3V4G-GWJ4

Prefix escape

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.0.2
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • fastify fastify-reply-from

    fixed in 4.0.2

  • fastify-reply-fromnpm

    fixed in 4.0.2

References 3

GitHub · fastify/fastify-reply-from

npmjs.com