CVE-2026-7120
published medium CVSS 3.1 · 5.3@fastify/static vulnerable to Authorization Bypass via Non-Canonical URL Paths
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| @fastify/static | — | @fastify/static0 to < 10.1.2 (affected · semver) · 10.1.2 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | openjs |
Description
@fastify/static evaluates the allowedPath callback before normalizing dot segments and duplicate path separators in the pathname used for file resolution. Versions up to and including 10.1.1 are affected. An unauthenticated attacker can bypass allowedPath restrictions by requesting equivalent non-canonical pathnames, causing files that were intended to be denied to be served anyway. The bypass does not allow access outside the configured static root by itself, it defeats path-based filtering only. The issue is patched in @fastify/static 10.1.2.
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.3 / 10
- Severity
- medium
- Provider
- openjs · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/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 | 0 to < 10.1.2 (affected · semver)10.1.2 (unaffected · semver)Default: unaffected | openjs · cna |
Weaknesses
1- CWE-180 CWE-180: Incorrect Behavior Order: Validate Before Canonicalize
References
2Provider assertions
2openjs · cna
@fastify/static vulnerable to Authorization Bypass via Non-Canonical URL Paths
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4ffcc99f931eac164eb279f62a4f81adb381c0cd3d8a41e6a2f75effcce992b6
- Ingested
- 23 Sep 2026, 09:33:51 UTC
- Source record
- Official CVE record