CVE-2026-18427

@fastify/static vulnerable to route guard bypass via non-canonical path segments

HIGH
7.5
CVSS Score
Published: August 6, 2026 at 02:52 PM UTC
Updated: September 4, 2026 at 06:36 PM UTC
2 products affected across 2 vendorsFastify Static@fastify/static

Using @fastify/static by @fastify/static?

Get instant alerts when new vulnerabilities affect @fastify/static - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 0.7%
SSVC
No known exploit

Description

@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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 10.1.3
Affected range stops below 10.1.3, so it looks safe — our inference, not a vendor statement
v < 10.1.3
Vendor states this is fixed in 10.1.3 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (2)

SSVC — Action Prioritization

SSVCNo known exploitAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.5HIGHopenjs
Vector?

Quick Info

StatusANALYZED
CWE
CWE-22CWE-436

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card