{"id":"CVE-2021-22963","aliases":["GHSA-p6vg-p826-qp3v"],"summary":"A redirect vulnerability in the fastify-static module version < 4.2.4 allows remote attackers to redirect users to arbitrary websites via a double slash // followed by a domain: http://localhost:30...","published_at":"2021-09-29T00:00:00Z","modified_at":"2024-08-03T18:58:26.158Z","products":[],"rating":{"severity":"medium","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","attack_path":"internet_unauthenticated","user_interaction":true,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.01169000007212162,"percentile":0.680679976940155,"date":"2026-11-19T00:00:00Z"},"priority":7.6,"details":"A redirect vulnerability in the fastify-static module version < 4.2.4 allows remote attackers to redirect users to arbitrary websites via a double slash // followed by a domain: http://localhost:3000//google.com/%2e%2e.The issue shows up on all the fastify-static applications that set redirect: true option. By default, it is false.","affected_stack":[],"affected_other":[{"ecosystem":"NVD","package":"fastify:fastify-static","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.4"}]}],"fixed":["4.2.4"],"provider":"nvd","source":"CVE-2021-22963","relation":"self"},{"ecosystem":"npm","package":"fastify-static","purl":"pkg:npm/fastify-static","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.2.4"}]}],"fixed":["4.2.4"],"provider":"osv","source":"GHSA-p6vg-p826-qp3v","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-22963"}],"records":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2022-0235","relation":"upstream","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2022-0235","license":"TLP:CLEAR, mirroring permitted","published_at":"2022-03-03T23:00:00Z","modified_at":"2026-10-08T22:00:00Z","summary":"Red Hat Advanced Cluster Management: Mehrere Schwachstellen ermöglichen Privilegieneskalation","details":"Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in Red Hat Advanced Cluster Management ausnutzen, um seine Privilegien zu erhöhen.\n\nRed Hat Enterprise Linux (RHEL) ist eine populäre Linux-Distribution.","severity":[{"type":"BSI","score":"hoch","source":"WID-SEC-W-2022-0235"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2022/wid-sec-w-2022-0235.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2022-0235"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2022:0595"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2022:0735"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2022:0856"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2022:4956"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2022:1083"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2022:1081"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2022:1361"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2022:1372"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2022:1476"},{"type":"WEB","url":"https://lists.suse.com/pipermail/sle-security-updates/2022-May/010921.html"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2022:5201"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2022:5483"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2022:5531"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2022:5069"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2022:6813"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2022:6835"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2022:8502"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2022:8524"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2022:8938"},{"type":"WEB","url":"https://support.hcltechsw.com/csm?id=kb_article&sysparm_article=KB0102172"},{"type":"WEB","url":"https://lists.suse.com/pipermail/sle-security-updates/2024-February/017932.html"},{"type":"WEB","url":"https://lists.suse.com/pipermail/sle-security-updates/2024-February/017931.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00006.html"},{"type":"WEB","url":"https://lists.suse.com/pipermail/sle-security-updates/2025-October/022826.html"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2025:21368"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2025:21378"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2025:21704"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2025:22420"}]},{"provider":"cvelistv5","source_id":"CVE-2021-22963","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2021-22963","license":"CC-BY-4.0","published_at":"2021-10-14T14:50:11Z","modified_at":"2024-08-03T18:58:26.158Z","summary":"A redirect vulnerability in the fastify-static module version < 4.2.4 allows remote attackers to redirect users to arbitrary websites via a double slash // followed by a domain: http://localhost:30...","details":"A redirect vulnerability in the fastify-static module version < 4.2.4 allows remote attackers to redirect users to arbitrary websites via a double slash // followed by a domain: http://localhost:3000//google.com/%2e%2e.The issue shows up on all the fastify-static applications that set redirect: true option. By default, it is false.","severity":[],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://hackerone.com/reports/1354255"}]},{"provider":"nvd","source_id":"CVE-2021-22963","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22963","severity":[],"affected":[{"ecosystem":"NVD","package":"fastify:fastify-static","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.4"}]}],"fixed":["4.2.4"],"provider":"nvd","source":"CVE-2021-22963","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-p6vg-p826-qp3v","relation":"self","url":"https://osv.dev/vulnerability/GHSA-p6vg-p826-qp3v","license":"CC-BY-4.0","published_at":"2021-10-05T20:24:49Z","modified_at":"2023-11-08T04:05:02.185397Z","summary":"URL Redirection to Untrusted Site ('Open Redirect') in fastify-static","details":"### Impact\n\nA redirect vulnerability in the `fastify-static` module allows remote attackers to redirect Mozilla Firefox users to arbitrary websites via a double slash `//` followed by a domain: `http://localhost:3000//google.com/%2e%2e`.\n\nThe issue shows up on all the `fastify-static` applications that set `redirect: true` option. By default, it is `false`.\n\n### Patches\nThe issue has been patched in `fastify-static@4.2.4`\n\n### Workarounds\nIf updating is not an option, you can sanitize the input URLs using the [`rewriteUrl`](https://www.fastify.io/docs/latest/Server/#rewriteurl) server option.\n\n### References\n\n+ Bug founder: drstrnegth\n+ [hackerone Report](https://hackerone.com/reports/1354255)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [fastify-static](https://github.com/fastify/fastify-static)\n* Contact the [security team](https://github.com/fastify/fastify/blob/main/SECURITY.md#the-fastify-security-team)","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"GHSA-p6vg-p826-qp3v"}],"affected":[{"ecosystem":"npm","package":"fastify-static","purl":"pkg:npm/fastify-static","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.2.4"}]}],"fixed":["4.2.4"],"provider":"osv","source":"GHSA-p6vg-p826-qp3v","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/fastify/fastify-static/security/advisories/GHSA-p6vg-p826-qp3v"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22963"},{"type":"WEB","url":"https://hackerone.com/reports/1354255"},{"type":"PACKAGE","url":"https://github.com/fastify/fastify-static"}]},{"provider":"redhat-vex","source_id":"CVE-2021-22963","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2021-22963","license":"CC-BY-4.0","published_at":"2021-09-29T00:00:00Z","modified_at":"2022-08-05T17:36:50Z","summary":"fastify-static: open redirect via an URL with double slash followed by a domain","details":"A redirect vulnerability in the fastify-static module version < 4.2.4 allows remote attackers to redirect users to arbitrary websites via a double slash // followed by a domain: http://localhost:3000//google.com/%2e%2e.The issue shows up on all the fastify-static applications that set redirect: true option. By default, it is false.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","source":"CVE-2021-22963"},{"type":"Red Hat","score":"Moderate","source":"CVE-2021-22963"}],"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-22963"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-22963.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-22963"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2015152"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2021-22963"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22963"}]}],"references":[{"type":"WEB","url":"https://hackerone.com/reports/1354255"},{"type":"WEB","url":"https://github.com/fastify/fastify-static/security/advisories/GHSA-p6vg-p826-qp3v"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22963"},{"type":"PACKAGE","url":"https://github.com/fastify/fastify-static"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-22963.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-22963"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2015152"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2021-22963"}],"sources":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2022-0235","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2022-0235","license":"TLP:CLEAR, mirroring permitted","modified_at":"2026-10-08T22:00:00Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2021-22963","url":"https://www.cve.org/CVERecord?id=CVE-2021-22963","license":"CC-BY-4.0","modified_at":"2024-08-03T18:58:26.158Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2021-22963","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22963","relation":"self"},{"provider":"osv","source_id":"GHSA-p6vg-p826-qp3v","url":"https://osv.dev/vulnerability/GHSA-p6vg-p826-qp3v","license":"CC-BY-4.0","modified_at":"2023-11-08T04:05:02.185397Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2021-22963","url":"https://access.redhat.com/security/cve/CVE-2021-22963","license":"CC-BY-4.0","modified_at":"2022-08-05T17:36:50Z","relation":"self"}]}
