{"id":"GHSA-8pvw-jcv7-9cmj","revision":"541a53301e76443792229f9b905867a9","records":[{"revision":"541a53301e76443792229f9b905867a9","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-8pvw-jcv7-9cmj","aliases":["CVE-2026-7120"],"title":"@fastify/static vulnerable to Authorization Bypass via Non-Canonical URL Paths","description":"### 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` >= 10.1.2.\n\n### Workarounds\n\nNone. Upgrade to the patched version.","state":0,"publishedAt":"2026-07-24T16:43:44+00:00","modifiedAt":"2026-07-24T17:11:53.177602+00:00","affected":[{"ecosystem":"npm","name":"@fastify/static","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"10.1.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["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"],"sourceUrl":"https://github.com/advisories/GHSA-8pvw-jcv7-9cmj","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-8pvw-jcv7-9cmj","identifiers":["GHSA-8pvw-jcv7-9cmj","CVE-2026-7120"]},"retained":false,"historicalAffected":[]}],"coverage":[]}