{"id":"GHSA-8pvw-jcv7-9cmj","summary":"@fastify/static vulnerable to Authorization Bypass via Non-Canonical URL Paths","details":"### Impact\n\n`@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.\n\nApplications 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.\n\n### Patches\n\nUpgrade to `@fastify/static` \u003e= 10.1.2.\n\n### Workarounds\n\nNone. Upgrade to the patched version.","aliases":["CVE-2026-7120"],"modified":"2026-07-24T17:11:53.177602Z","published":"2026-07-24T16:43:44Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2026-07-24T16:43:44Z","nvd_published_at":"2026-07-23T04:16:33Z","cwe_ids":["CWE-180"],"severity":"MODERATE"},"references":[{"type":"WEB","url":"https://github.com/fastify/fastify-static/security/advisories/GHSA-8pvw-jcv7-9cmj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-7120"},{"type":"WEB","url":"https://github.com/fastify/fastify-static/commit/878c72e920fabacf7e37739bf78057044717bf63"},{"type":"WEB","url":"https://cna.openjsf.org/security-advisories.html"},{"type":"PACKAGE","url":"https://github.com/fastify/fastify-static"},{"type":"WEB","url":"https://github.com/fastify/fastify-static/releases/tag/v10.1.2"}],"affected":[{"package":{"name":"@fastify/static","ecosystem":"npm","purl":"pkg:npm/%40fastify/static"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"10.1.2"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 10.1.1","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-8pvw-jcv7-9cmj/GHSA-8pvw-jcv7-9cmj.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"}]}