{"id":"CVE-2021-21322","published":"2021-03-02T03:35:17Z","modified":"2024-08-03T18:09:15Z","title":"Prefix escape","vendor":"fastify","product":"fastify-http-proxy","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01627,"percentile":0.7677,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/fastify/fastify-http-proxy/security/advisories/GHSA-c4qr-gmr9-v23w","tags":["x_refsource_CONFIRM"]},{"url":"https://www.npmjs.com/package/fastify-http-proxy","tags":["x_refsource_MISC"]},{"url":"https://github.com/fastify/fastify-http-proxy/commit/02d9b43c770aa16bc44470edecfaeb7c17985016","tags":["x_refsource_MISC"]}],"priority":{"score":22.4,"factors":[{"name":"EPSS percentile","points":15.35},{"name":"CVSS severity","points":7.0}]},"vendorSlug":"fastify","affectedVersions":[{"vendor":"fastify","product":"fastify-http-proxy","versions":["< 4.3.1"]}],"affected":[{"ecosystem":"npm","package":"fastify-http-proxy","vulnerableRanges":["<4.3.1"],"patched":["4.3.1"],"from":["GHSA-c4qr-gmr9-v23w"],"provenance":"source"}],"summary":{"text":"A flaw in the fastify-http-proxy npm package, a Fastify plugin for proxying HTTP requests to another server, allows a crafted URL to escape the path prefix configured for the proxied backend. An unauthenticated remote attacker with network access can send such a request without any user interaction or special configuration, reaching backend paths outside the intended prefix (for example, accessing /priv when the base URL is /pub/).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:40:39Z"},"euvd":{"id":"EUVD-2021-0642","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-fastify-http-proxy-cve-2021-21322","children":[{"from":"CVE-2021-21322","to":"CVE-2026-15631","relation":"variant","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"variant","quote":"This is a variant of CVE-2021-21322 in a code path that never went through the HTTP fix in fastify/reply-from.","from":"CVE.org","in":"CVE-2026-15631"}]}]}}