GHSA-83w8-p2f5-377r

Suggest an improvement
Source
https://github.com/advisories/GHSA-83w8-p2f5-377r
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-83w8-p2f5-377r/GHSA-83w8-p2f5-377r.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-83w8-p2f5-377r
Aliases
Downstream
Published
2026-07-24T16:43:21Z
Modified
2026-07-24T17:11:53Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
@fastify/static vulnerable to route guard bypass via path traversal
Details

Impact

@fastify/static is vulnerable to a bypass of route-based middleware and guards via non-leading .. and %2E%2E path segments. find-my-way does not normalize .. when matching routes, so a request such as /foo/../deep/secret.txt matches the static plugin's catch-all instead of the guarded /deep/*. The getPathnameForSend helper introduced by the fix for GHSA-x428-ghpx-8j92 only guards against the %2F variant; .. and %2E%2E survive the decodeURI + encodeURI round-trip and are then collapsed away by @fastify/send's path.normalize before its own traversal guard runs.

Applications that rely on route-based middleware or guards to protect files served by @fastify/static can be bypassed with non-leading dot-dot path segments.

Patches

Upgrade to @fastify/static 10.1.1.

Workarounds

Do not use route-based middlewares or guards to protect files served by @fastify/static.

Database specific
{
    "cwe_ids": [
        "CWE-22"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-07-24T16:43:21Z",
    "nvd_published_at": "2026-07-23T04:16:31Z",
    "severity": "HIGH"
}
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.1

Database specific

last_known_affected_version_range
"<= 10.1.0"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-83w8-p2f5-377r/GHSA-83w8-p2f5-377r.json"