GHSA-8pvw-jcv7-9cmj

Suggest an improvement
Source
https://github.com/advisories/GHSA-8pvw-jcv7-9cmj
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-8pvw-jcv7-9cmj/GHSA-8pvw-jcv7-9cmj.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-8pvw-jcv7-9cmj
Aliases
Downstream
Published
2026-07-24T16:43:44Z
Modified
2026-07-24T17:11:53Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
@fastify/static vulnerable to Authorization Bypass via Non-Canonical URL Paths
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-180"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-07-24T16:43:44Z",
    "nvd_published_at":  "2026-07-23T04:16:33Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / @fastify/static

Package

Name
@fastify/static
View open source insights on deps.dev
Purl
pkg:npm/%40fastify/static

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
10.1.2

Database specific

last_known_affected_version_range
"<= 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"