CVE-2026-6414
published medium CVSS 3.1 · 5.9@fastify/static vulnerable to route guard bypass via encoded path separators
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| @fastify/static | — | @fastify/static8.0.0 to < 9.1.1 (affected · semver) · 9.1.1 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | openjs |
Description
@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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- openjs · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| @fastify/static | @fastify/static | 8.0.0 to < 9.1.1 (affected · semver)9.1.1 (unaffected · semver)Default: unaffected | openjs · cna |
Weaknesses
1- CWE-177 CWE-177: Improper Handling of URL Encoding (Hex Encoding)
References
4Provider assertions
2openjs · cna
@fastify/static vulnerable to route guard bypass via encoded path separators
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6ccb45cbc3efc7d790ee43c0d4a4b0431c5cf73bbb8ee725d6c97071752e645a
- Ingested
- 23 Sep 2026, 09:28:24 UTC
- Source record
- Official CVE record