Quick answers
- Is CVE-2026-7120 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-7120 being exploited in the wild.
- How severe is CVE-2026-7120?
- Medium severity, with a CVSS score of 5.3, published 23 July 2026.
- Which products and versions are affected?
- Fastify Static <= 10.1.1; @fastify/static (npm) <= 10.1.1, SEMVER:introduced=0,fixed=10.1.2.
- Is there a fix for CVE-2026-7120?
- Yes. @fastify/static (npm): upgrade to 10.1.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-7120 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-7120?
- 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.2 or later
npm install @fastify/static@10.1.2
Technical details
The @fastify/static plugin fails to canonicalize URL paths before executing the 'allowedPath' validation callback. This root cause allows attackers to use non-canonical pathnames (e.g., '//file', '/./file', or directory traversal sequences like '/public/../private/file') to bypass security filters that rely on the 'allowedPath' check. Because the validation occurs before dot segments and duplicate slashes are normalized, the filter may permit a path that later resolves to a restricted file on the disk. This is a remote, unauthenticated attack vector. The issue is fixed in version 10.1.2.
Affected products
- Fastify @fastify/static <= 10.1.1
Identifiers
- CVE-2026-7120
- GHSA-8pvw-jcv7-9cmj
Timeline
- 2026-07-22: disclosed
- 2026-07-23: advisory: NVD publication
- 2026-07-24: patched: GitHub Advisory published and reviewed
References
- https://api.github.com/users/yuki-matsuhashi
- https://github.com/yuki-matsuhashi
- https://api.github.com/users/yuki-matsuhashi/gists%7B/gist_id%7D
- https://api.github.com/users/yuki-matsuhashi/repos
- https://avatars.githubusercontent.com/u/250794953?v=4
- https://api.github.com/users/yuki-matsuhashi/events%7B/privacy%7D