{"id":"CVE-2026-6414","aliases":["GHSA-x428-ghpx-8j92"],"summary":"@fastify/static vulnerable to route guard bypass via encoded path separators","published_at":"2026-04-16T13:09:03.526Z","modified_at":"2026-07-08T08:14:42.02547Z","products":[],"rating":{"severity":"medium","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","attack_path":"internet_unauthenticated","user_interaction":false,"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.004290000069886446,"percentile":0.3789600133895874,"date":"2026-11-19T00:00:00Z"},"priority":7.9,"details":"@fastify/static versions 8.0.0 through 9.1.0 decode percent-encoded path separators (%2F) before filesystem resolution, while Fastify's router treats them as literal characters. This mismatch allows attackers to bypass route-based middleware or guards that protect files served by @fastify/static. For example, a route guard on a protected path can be circumvented by encoding the path separator in the URL. Upgrade to @fastify/static 9.1.1 to fix this issue. There are no workarounds.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"@fastify/static/@fastify/static","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.0.0"},{"fixed":"9.1.1"}]}],"fixed":["9.1.1"],"provider":"cvelistv5","source":"CVE-2026-6414","relation":"self"},{"ecosystem":"NVD","package":"fastify:fastify-static","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.0.0"},{"fixed":"9.1.1"}]}],"fixed":["9.1.1"],"provider":"nvd","source":"CVE-2026-6414","relation":"self"},{"ecosystem":"npm","package":"@fastify/static","purl":"pkg:npm/%40fastify/static","ranges":[{"type":"SEMVER","events":[{"introduced":"8.0.0"},{"fixed":"9.1.1"}]}],"fixed":["9.1.1"],"provider":"osv","source":"GHSA-x428-ghpx-8j92","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","status":"affected","packages":["rhelai3/bootc-cuda-rhel9","rhelai3/bootc-rocm-rhel9","rhelai3/disk-image-cuda-rhel9"],"package_count":3,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-6414"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"affected","packages":["rhoai/odh-dashboard-rhel8","rhoai/odh-dashboard-rhel9","rhoai/odh-mod-arch-gen-ai-rhel9","rhoai/odh-mod-arch-maas-rhel9","rhoai/odh-mod-arch-model-registry-rhel9"],"package_count":5,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-6414"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","cpe":"cpe:/a:redhat:openshift_devspaces:3","status":"affected","packages":["devspaces/dashboard-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-6414"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2026-6414","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-6414","license":"CC-BY-4.0","published_at":"2026-04-16T13:09:03.526Z","modified_at":"2026-04-16T13:48:52.393Z","summary":"@fastify/static vulnerable to route guard bypass via encoded path separators","details":"@fastify/static versions 8.0.0 through 9.1.0 decode percent-encoded path separators (%2F) before filesystem resolution, while Fastify's router treats them as literal characters. This mismatch allows attackers to bypass route-based middleware or guards that protect files served by @fastify/static. For example, a route guard on a protected path can be circumvented by encoding the path separator in the URL. Upgrade to @fastify/static 9.1.1 to fix this issue. There are no workarounds.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"CVE-2026-6414"}],"affected":[{"ecosystem":"CVE","package":"@fastify/static/@fastify/static","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.0.0"},{"fixed":"9.1.1"}]}],"fixed":["9.1.1"],"provider":"cvelistv5","source":"CVE-2026-6414","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/fastify/middie/security/advisories/GHSA-cxrg-g7r8-w69p"},{"type":"WEB","url":"https://github.com/honojs/hono/security/advisories/GHSA-q5qw-h33p-qvwr"},{"type":"WEB","url":"https://github.com/fastify/fastify-static/security/advisories/GHSA-x428-ghpx-8j92"},{"type":"WEB","url":"https://cna.openjsf.org/security-advisories.html"}]},{"provider":"nvd","source_id":"CVE-2026-6414","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6414","severity":[],"affected":[{"ecosystem":"NVD","package":"fastify:fastify-static","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.0.0"},{"fixed":"9.1.1"}]}],"fixed":["9.1.1"],"provider":"nvd","source":"CVE-2026-6414","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-x428-ghpx-8j92","relation":"self","url":"https://osv.dev/vulnerability/GHSA-x428-ghpx-8j92","license":"CC-BY-4.0","published_at":"2026-04-16T22:34:03Z","modified_at":"2026-07-08T08:14:42.02547Z","summary":"@fastify/static vulnerable to route guard bypass via encoded path separators","details":"### Impact\n\n`@fastify/static` v9.1.0 and earlier decodes percent-encoded path separators (`%2F`) before filesystem resolution, but Fastify's router treats them as literal characters. This creates a routing mismatch: route guards on `/admin/*` do not match `/admin%2Fsecret.html`, but @fastify/static decodes it to `/admin/secret.html` and serves the file.\n\nApplications that rely on route-based middleware or guards to protect files served by @fastify/static can be bypassed with encoded path separators.\n\n### Patches\n\nUpgrade to `@fastify/static` >= 9.1.1.\n\n### Workarounds\n\nNone. Upgrade to the patched version.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"GHSA-x428-ghpx-8j92"}],"affected":[{"ecosystem":"npm","package":"@fastify/static","purl":"pkg:npm/%40fastify/static","ranges":[{"type":"SEMVER","events":[{"introduced":"8.0.0"},{"fixed":"9.1.1"}]}],"fixed":["9.1.1"],"provider":"osv","source":"GHSA-x428-ghpx-8j92","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/fastify/fastify-static/security/advisories/GHSA-x428-ghpx-8j92"},{"type":"WEB","url":"https://github.com/fastify/middie/security/advisories/GHSA-cxrg-g7r8-w69p"},{"type":"WEB","url":"https://github.com/honojs/hono/security/advisories/GHSA-q5qw-h33p-qvwr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6414"},{"type":"WEB","url":"https://cna.openjsf.org/security-advisories.html"},{"type":"PACKAGE","url":"https://github.com/fastify/fastify-static"}]},{"provider":"redhat-vex","source_id":"CVE-2026-6414","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-6414","license":"CC-BY-4.0","published_at":"2026-04-16T13:09:03.526Z","modified_at":"2026-04-16T19:58:07.92431Z","summary":"@fastify/static: @fastify/static: Security bypass via percent-encoded path separators","details":"A flaw was found in @fastify/static. A remote attacker can exploit this vulnerability by sending specially crafted requests that include percent-encoded path separators. This mismatch in how @fastify/static decodes these separators compared to the Fastify router allows the attacker to bypass security measures such as route-based middleware or guards. Consequently, this can lead to unauthorized access to protected files or information disclosure.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"CVE-2026-6414"},{"type":"Red Hat","score":"Moderate","source":"CVE-2026-6414"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","status":"affected","packages":["rhelai3/bootc-cuda-rhel9","rhelai3/bootc-rocm-rhel9","rhelai3/disk-image-cuda-rhel9"],"package_count":3,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-6414"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"affected","packages":["rhoai/odh-dashboard-rhel8","rhoai/odh-dashboard-rhel9","rhoai/odh-mod-arch-gen-ai-rhel9","rhoai/odh-mod-arch-maas-rhel9","rhoai/odh-mod-arch-model-registry-rhel9"],"package_count":5,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-6414"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","cpe":"cpe:/a:redhat:openshift_devspaces:3","status":"affected","packages":["devspaces/dashboard-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-6414"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6414.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-6414"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2458939"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-6414"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6414"},{"type":"WEB","url":"https://cna.openjsf.org/security-advisories.html"},{"type":"WEB","url":"https://github.com/fastify/fastify-static/security/advisories/GHSA-x428-ghpx-8j92"},{"type":"WEB","url":"https://github.com/fastify/middie/security/advisories/GHSA-cxrg-g7r8-w69p"},{"type":"WEB","url":"https://github.com/honojs/hono/security/advisories/GHSA-q5qw-h33p-qvwr"}]}],"references":[{"type":"WEB","url":"https://github.com/fastify/middie/security/advisories/GHSA-cxrg-g7r8-w69p"},{"type":"WEB","url":"https://github.com/honojs/hono/security/advisories/GHSA-q5qw-h33p-qvwr"},{"type":"WEB","url":"https://github.com/fastify/fastify-static/security/advisories/GHSA-x428-ghpx-8j92"},{"type":"WEB","url":"https://cna.openjsf.org/security-advisories.html"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6414"},{"type":"PACKAGE","url":"https://github.com/fastify/fastify-static"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6414.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-6414"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2458939"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-6414"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2026-6414","url":"https://www.cve.org/CVERecord?id=CVE-2026-6414","license":"CC-BY-4.0","modified_at":"2026-04-16T13:48:52.393Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2026-6414","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6414","relation":"self"},{"provider":"osv","source_id":"GHSA-x428-ghpx-8j92","url":"https://osv.dev/vulnerability/GHSA-x428-ghpx-8j92","license":"CC-BY-4.0","modified_at":"2026-07-08T08:14:42.02547Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-6414","url":"https://access.redhat.com/security/cve/CVE-2026-6414","license":"CC-BY-4.0","modified_at":"2026-04-16T19:58:07.92431Z","relation":"self"}]}
