{"id":"CVE-2021-21322","aliases":["GHSA-c4qr-gmr9-v23w"],"summary":"Prefix escape","published_at":"2021-02-23T00:00:00Z","modified_at":"2026-07-08T06:28:05.180812Z","products":[],"rating":{"severity":"critical","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Critical","vendor_ratings":[{"source":"Red Hat","rating":"Critical"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.016270000487565994,"percentile":0.7669699788093567,"date":"2026-11-19T00:00:00Z"},"priority":12,"details":"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.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"fastify/fastify-http-proxy","versions":["< 4.3.1"],"provider":"cvelistv5","source":"CVE-2021-21322","relation":"self"},{"ecosystem":"NVD","package":"fastify-http-proxy_project:fastify-http-proxy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.3.1"}]}],"fixed":["4.3.1"],"provider":"nvd","source":"CVE-2021-21322","relation":"self"},{"ecosystem":"npm","package":"fastify-http-proxy","purl":"pkg:npm/fastify-http-proxy","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.3.1"}]}],"fixed":["4.3.1"],"provider":"osv","source":"GHSA-c4qr-gmr9-v23w","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"affected","packages":["rhacm2/search-ui-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2021-21322"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2021-21322","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2021-21322","license":"CC-BY-4.0","published_at":"2021-03-02T03:35:17Z","modified_at":"2024-08-03T18:09:15.229Z","summary":"Prefix escape","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","source":"CVE-2021-21322"}],"affected":[{"ecosystem":"CVE","package":"fastify/fastify-http-proxy","versions":["< 4.3.1"],"provider":"cvelistv5","source":"CVE-2021-21322","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/fastify/fastify-http-proxy/security/advisories/GHSA-c4qr-gmr9-v23w"},{"type":"WEB","url":"https://www.npmjs.com/package/fastify-http-proxy"},{"type":"WEB","url":"https://github.com/fastify/fastify-http-proxy/commit/02d9b43c770aa16bc44470edecfaeb7c17985016"}]},{"provider":"nvd","source_id":"CVE-2021-21322","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21322","severity":[],"affected":[{"ecosystem":"NVD","package":"fastify-http-proxy_project:fastify-http-proxy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.3.1"}]}],"fixed":["4.3.1"],"provider":"nvd","source":"CVE-2021-21322","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-c4qr-gmr9-v23w","relation":"self","url":"https://osv.dev/vulnerability/GHSA-c4qr-gmr9-v23w","license":"CC-BY-4.0","published_at":"2021-03-03T02:18:08Z","modified_at":"2026-07-08T06:28:05.180812Z","summary":"Prefix escape","details":"### Impact\n\nBy crafting a specific URL, it is possible to escape the prefix of the proxied backend service.\nIf the base url of the proxied server is `/pub/`, a user expect that accessing `/priv` on the target service would not be possible. Unfortunately, it is.\n\n[CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N](https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N)\n\n### Patches\n\nAll releases after v4.3.1 include the fix.\n\n### Workarounds\n\nThere are no workaround available.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [fastify-reply-from](https://github.com/fastify/fastify-reply-from)\n* Email us at [hello@matteocollina.com](mailto:hello@matteocollina.com)","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","source":"GHSA-c4qr-gmr9-v23w"}],"affected":[{"ecosystem":"npm","package":"fastify-http-proxy","purl":"pkg:npm/fastify-http-proxy","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.3.1"}]}],"fixed":["4.3.1"],"provider":"osv","source":"GHSA-c4qr-gmr9-v23w","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/fastify/fastify-http-proxy/security/advisories/GHSA-c4qr-gmr9-v23w"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21322"},{"type":"WEB","url":"https://github.com/fastify/fastify-http-proxy/commit/02d9b43c770aa16bc44470edecfaeb7c17985016"},{"type":"WEB","url":"https://www.npmjs.com/package/fastify-http-proxy"}]},{"provider":"redhat-vex","source_id":"CVE-2021-21322","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2021-21322","license":"CC-BY-4.0","published_at":"2021-02-23T00:00:00Z","modified_at":"2021-08-06T00:50:47Z","summary":"fastify-http-proxy: crafted URL allows prefix scape of the proxied backend service","details":"A flaw was found in fastify-http-proxy. Escaping the prefix of the proxied backend service is possible by an attacker using a specially crafted URL. The highest threat from this vulnerability is to data confidentiality and integrity.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","source":"CVE-2021-21322"},{"type":"Red Hat","score":"Critical","source":"CVE-2021-21322"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"affected","packages":["rhacm2/search-ui-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2021-21322"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-21322.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-21322"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1942182"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2021-21322"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21322"},{"type":"WEB","url":"https://github.com/fastify/fastify-http-proxy/security/advisories/GHSA-c4qr-gmr9-v23w"}]}],"references":[{"type":"WEB","url":"https://github.com/fastify/fastify-http-proxy/security/advisories/GHSA-c4qr-gmr9-v23w"},{"type":"WEB","url":"https://www.npmjs.com/package/fastify-http-proxy"},{"type":"WEB","url":"https://github.com/fastify/fastify-http-proxy/commit/02d9b43c770aa16bc44470edecfaeb7c17985016"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21322"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-21322.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-21322"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1942182"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2021-21322"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2021-21322","url":"https://www.cve.org/CVERecord?id=CVE-2021-21322","license":"CC-BY-4.0","modified_at":"2024-08-03T18:09:15.229Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2021-21322","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21322","relation":"self"},{"provider":"osv","source_id":"GHSA-c4qr-gmr9-v23w","url":"https://osv.dev/vulnerability/GHSA-c4qr-gmr9-v23w","license":"CC-BY-4.0","modified_at":"2026-07-08T06:28:05.180812Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2021-21322","url":"https://access.redhat.com/security/cve/CVE-2021-21322","license":"CC-BY-4.0","modified_at":"2021-08-06T00:50:47Z","relation":"self"}]}
