# CVE-2026-18427: @fastify/static vulnerable to route guard bypass via non-canonical path segments

- Severity: High 7.5 (CVSS:3.1, scored by openjs) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Published: 2026-08-06T14:52:26.958Z
- Modified: 2026-09-04T18:16:20.770Z
- Weaknesses: CWE-22, CWE-436
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: openjs

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

(As written by CVE List.)

## Affected

- @fastify/static @fastify/static: before 10.1.3 (not affected: 10.1.3)
- fastify fastify-static: before 10.1.3

## References

- <https://github.com/fastify/fastify-static/security/advisories/GHSA-423g-23ch-w7c6> (mitigation, vendor-advisory)
- <https://cna.openjsf.org/security-advisories.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-18427](https://www.cve.org/CVERecord?id=CVE-2026-18427), CVE Terms of Use, modified 2026-08-06
- NVD: [CVE-2026-18427](https://nvd.nist.gov/vuln/detail/CVE-2026-18427), Public domain, modified 2026-09-04

---

Page: https://cve.day/CVE-2026-18427 · Whole record: https://cve.day/CVE-2026-18427.json · Rebuilt by cve.day 2026-11-25T22:59:31.267Z
