CVE-2026-7120Fastify-static Incorrect Behavior Order: Validate Before Canonicalize
NVDCVSS scored by ce714d77-add3-4f53-aff5-83d477b104bb
Vulnerability Summary
@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.
CVSS v3.1 Base Metrics — Score 5.3 (MEDIUM)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityLow
IntegrityNone
AvailabilityNone
Affected & Patched Versions
- Fastify-static < 10.1.2
- @fastify/static < 10.1.2
- Fastify-static 10.1.2
- @fastify/static 10.1.2
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run Fastify-static and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Jul 23, 2026Published
- Jul 28, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Fastify-static CVEsYou are reading CVE-2026-7120. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
Data last checked: Nov 24, 2026 16:13 UTC