# CVE-2026-15074: Fastify @fastify/static route guard bypass via path traversal

Source: https://junglewise.ai/threats/cve-2026-15074-fastify-fastify-static-route-guard-bypass-via-path-traversal  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-23. Updated: 2026-07-24  
License: CC BY 4.0 with a link back

CVE-2026-15074 · Severity: high · CVSS 7.5 · Published 2026-07-23

A vulnerability in the @fastify/static library, which is used to serve static files in web applications, allows attackers to bypass security rules intended to protect sensitive files. By using specially crafted web addresses containing ".." segments, an attacker can trick the system into serving files that should be restricted or hidden behind login screens. This could lead to the unauthorized exposure of private documents, configuration files, or other sensitive data.

Technologies: [Fastify Static](https://junglewise.ai/threats/technologies/static), [@fastify/static (npm)](https://junglewise.ai/threats/technologies/fastify-static). Vendors: [Fastify](https://junglewise.ai/threats/vendors/fastify), [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2026-15074 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-15074 being exploited in the wild.

**How severe is CVE-2026-15074?** High severity, with a CVSS score of 7.5, published 23 July 2026.

**Which products and versions are affected?** Fastify Static <= 10.1.0; @fastify/static (npm) <= 10.1.0, SEMVER:introduced=0,fixed=10.1.1.

**Is there a fix for CVE-2026-15074?** Yes. @fastify/static (npm): upgrade to 10.1.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-15074 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-15074?** Check whether you run Fastify Static or @fastify/static (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- @fastify/static (npm): upgrade to 10.1.1 or later

  ```sh
  npm install @fastify/static@10.1.1
  ```


## Technical details

@fastify/static is vulnerable to a route guard bypass via path traversal (CWE-22). The root cause is that the underlying router, 'find-my-way', does not normalize '..' or '%2E%2E' segments when matching routes. Consequently, a request like '/public/../protected/file.txt' may bypass guards intended for the '/protected/' prefix and instead match the static plugin's catch-all handler. While a previous fix addressed '%2F' variants, '..' segments survive the internal URI round-trip and are only normalized by the underlying '@fastify/send' library after the route-level security checks have already been bypassed. This allows unauthenticated remote attackers to access files that should be protected by middleware. The issue is fixed in version 10.1.1.

## Affected products

- Fastify @fastify/static <= 10.1.0

## Identifiers

- CVE-2026-15074
- GHSA-83w8-p2f5-377r

## Timeline

- 2026-07-22: patched: Version 10.1.1 released
- 2026-07-24: advisory: GitHub Advisory published

## References

- [https://api.github.com/users/imssm99](https://api.github.com/users/imssm99)
- [https://github.com/imssm99](https://github.com/imssm99)
- [https://api.github.com/users/imssm99/gists%7B/gist_id%7D](https://api.github.com/users/imssm99/gists%7B/gist_id%7D)
- [https://api.github.com/users/imssm99/repos](https://api.github.com/users/imssm99/repos)
- [https://avatars.githubusercontent.com/u/15193055?v=4](https://avatars.githubusercontent.com/u/15193055?v=4)
- [https://api.github.com/users/imssm99/events%7B/privacy%7D](https://api.github.com/users/imssm99/events%7B/privacy%7D)

## Related threats

- [Fastify @fastify/static authorization bypass via non-canonical paths](https://junglewise.ai/threats/cve-2026-7120-fastify-fastify-static-authorization-bypass-via-non-canonical)
- [Fastify @fastify/static path traversal in directory listing](https://junglewise.ai/threats/cve-2026-6410-fastify-fastify-static-path-traversal-in-directory-listing)
- [Fastify @fastify/static route guard bypass via encoded path separators](https://junglewise.ai/threats/cve-2026-6414-fastify-fastify-static-route-guard-bypass-via-encoded-path)
- [fastify-static open redirect and DOS with user input](https://junglewise.ai/threats/cve-2021-22964-fastify-static-open-redirect-and-dos-with-user-input)
- [Fastify fastify-static open redirect](https://junglewise.ai/threats/cve-2021-22963-fastify-fastify-static-open-redirect)
