CVE-2026-7120
mediumpriority · track · 0EPSS 0.004 · 31 %ileEUUSEPSS · scored 2026-10-27
@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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-8pvw-jcv7-9cmj@fastify/static vulnerable to Authorization Bypass via Non-Canonical URL Paths2026-07-24ghsa · osvUS
### Impact `@fastify/static` evaluates the `allowedPath` callback before normalizing dot segments and duplicate slashes in the pathname used for file resolution. Non-canonical pathnames such as `//file`, `/./file`, or `/public/../private/file` bypass `allowedPath` filtering while resolving to the intended file on disk. Applications that use `allowedPath` as a security boundary to restrict access to specific static files or path subtrees may unintentionally expose files that were intended to be denied. ### Patches Upgrade to `@fastify/static` >= 10.1.2. ### Workarounds None. Upgrade to the patched version.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (6)
External citations — patches, advisories, analysis.
- https://cna.openjsf.org/security-advisories.htmlcnnvd
- https://github.com/fastify/fastify-static/security/advisories/GHSA-8pvw-jcv7-9cmjcnnvd
- https://cna.openjsf.org/security-advisories.htmlenisa_euvd
- https://github.com/fastify/fastify-static/security/advisories/GHSA-8pvw-jcv7-9cmjenisa_euvd
- https://cna.openjsf.org/security-advisories.htmlVendor Advisorynvd
- https://github.com/fastify/fastify-static/security/advisories/GHSA-8pvw-jcv7-9cmjVendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan