CVE Watchtower

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.
Severity Level
MEDIUM(5.3)
Published Date
Jul 23, 2026
Last Modified
Jul 28, 2026
Exploitation Status
No confirmed exploitation yet
EPSS Score (30-Day)
0.37%Probability
Root Weakness (CWE)
The product validates input before it is canonicalized, which prevents the product from detecting data that becomes invalid after the canonicalization step.
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:N
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityLow
IntegrityNone
AvailabilityNone

Affected & Patched Versions

Affected Versions
  • Fastify-static < 10.1.2
  • @fastify/static < 10.1.2
Patched Versions
  • 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.

  1. Check whether you run Fastify-static and which version.
  2. 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 alerts

Data last checked: Nov 24, 2026 16:13 UTC