CVE Watchtower

CVE-2026-18427Fastify-static Path Traversal

NVDCVSS scored by ce714d77-add3-4f53-aff5-83d477b104bb

Vulnerability Summary

@fastify/static before version 10.1.3 contains an incomplete fix for a previous route guard bypass. The static file handler rejected only parent directory segments, but it did not canonicalize dot segments, duplicate slashes, encoded dots, or backslashes before route matching and before delegating to the send layer. As a result, an unauthenticated attacker could request a file protected by a route based guard using a non canonical path form that misses the guarded route yet resolves back onto the protected file, disclosing its contents. Applications that protect a subtree of the static root with a route based guard are affected, while applications relying on the allowedPath option are not. This is fixed in @fastify/static 10.1.3, which canonicalizes the pathname, including rejecting backslashes, on the path used for routing and serving.
Severity Level
HIGH(7.5)
Published Date
Aug 6, 2026
Last Modified
Sep 4, 2026
Exploitation Status
No confirmed exploitation yet
EPSS Score (30-Day)
0.66%Probability
Root Weakness (CWE)
The software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory.
Product A handles inputs or steps differently than Product B, which causes A to perform incorrect actions based on its perception of B's state.
CVSS v3.1 Base Metrics — Score 7.5 (HIGH)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityNone
AvailabilityNone

Affected & Patched Versions

Affected Versions
  • Fastify-static < 10.1.3
  • @fastify/static < 10.1.3
Patched Versions
  • Fastify-static 10.1.3
  • @fastify/static 10.1.3

What to do

Plan remediation soon. No exploitation is confirmed yet, but the severity is high.

  1. Check whether you run Fastify-static and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Aug 6, 2026Published
  • Sep 4, 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-18427. 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