@fastify/static vulnerable to Authorization Bypass via Non-Canonical URL Paths
cve-program · CVE-2026-7120
Published@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.
Read the publisher's advisoryeuvd · EUVD-2026-47870
Published@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.
Read the publisher's advisorynvd · CVE-2026-7120
Published@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.
Read the publisher's advisoryosv · GHSA-8pvw-jcv7-9cmj
Published### 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.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-7120 · CVE overview and exploitation status
cve-program · CVE-2026-7120
- https://github.com/fastify/fastify-static/security/advisories/GHSA-8pvw-jcv7-9cmj
- https://cna.openjsf.org/security-advisories.html
euvd · EUVD-2026-47870
- https://github.com/fastify/fastify-static/security/advisories/GHSA-8pvw-jcv7-9cmj
- https://cna.openjsf.org/security-advisories.html
nvd · CVE-2026-7120
- https://cna.openjsf.org/security-advisories.html
- https://github.com/fastify/fastify-static/security/advisories/GHSA-8pvw-jcv7-9cmj
osv · GHSA-8pvw-jcv7-9cmj
- https://github.com/fastify/fastify-static/security/advisories/GHSA-8pvw-jcv7-9cmj
- https://nvd.nist.gov/vuln/detail/CVE-2026-7120
- https://github.com/fastify/fastify-static/commit/878c72e920fabacf7e37739bf78057044717bf63
- https://cna.openjsf.org/security-advisories.html
- https://github.com/fastify/fastify-static
- https://github.com/fastify/fastify-static/releases/tag/v10.1.2
Related changes
Linked by CVE identifierNo related changes are available here.