CVE-2026-7120
Description
@fastify/static evaluates the allowedPath callback before normalizing dot segments and duplicate path separators in the pathname used for file resolution. Versions up to and including 10.1.1 are affected. An unauthenticated attacker can bypass allowedPath restrictions by requesting equivalent non-canonical pathnames, causing files that were intended to be denied to be served anyway. The bypass does not allow access outside the configured static root by itself, it defeats path-based filtering only. The issue is patched in @fastify/static 10.1.2.
Description as published by the source, in English.
Key facts
- Published
- 2026-07-23
- Last modified
- 2026-07-28
- Assigned by
- ce714d77-add3-4f53-aff5-83d477b104bb
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N- Scored by
- ce714d77-add3-4f53-aff5-83d477b104bb
- Probability of exploitation
-
0.2 %
higher than 13 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Fastify | Fastify-static | < 10.1.2 | Affected |
| fastify | static (npm) | < 10.1.2 | Affected |
Weakness type
-
CWE-180: Incorrect Behavior Order: Validate Before Canonicalize
The product validates input before it is canonicalized.
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1027: Obfuscated Files or Information
References
- https://cna.openjsf.org/security-advisories.html
- https://github.com/fastify/fastify-static/security/advisories/GHSA-8pvw-jcv7-9cmj
Related at Berigo
Articles
-
New malware puts its next move to a vote among four AI models
Same product
2026-09-26
Cisco Talos has analysed CLOSEDQUORUM, a Windows implant that hands the choice of its next action to four commercial AI models. Talos has not confirm…
-
Every build of the Vidar stealer decodes its strings a different way
Same product
2026-09-26
Zscaler ThreatLabz tracked Vidar from May to early September 2026 and watched its string protection move from single byte XOR, through ChaCha20, to a…
-
New numbers show how often an attacker succeeds against an AI agent
Same product
2026-08-18
The system card for Claude Opus 5 does not measure how many attacks succeed, but the probability that an attacker finds at least one working attack w…
-
Cisco closes top-severity holes in SD-WAN and IOS XE, and there is no way around them
Same product
2026-08-06
Cisco published security updates for Catalyst SD-WAN, IOS XE and the Integrated Management Controller on 5 August 2026. Three of the SD-WAN vulnerabi…
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.