build(deps): update dependency @fastify/static to v10 [security] - #628
Open
renovate[bot] wants to merge 1 commit into
Open
build(deps): update dependency @fastify/static to v10 [security]#628renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #628 +/- ##
=======================================
Coverage 81.06% 81.06%
=======================================
Files 19 19
Lines 301 301
=======================================
Hits 244 244
Misses 57 57 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
renovate
Bot
force-pushed
the
renovate/npm-fastify-static-vulnerability
branch
2 times, most recently
from
April 27, 2026 20:09
5dae8cf to
59c08c6
Compare
renovate
Bot
force-pushed
the
renovate/npm-fastify-static-vulnerability
branch
from
July 28, 2026 18:36
59c08c6 to
dfdec86
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
8.2.0→10.1.2@fastify/static vulnerable to route guard bypass via encoded path separators
CVE-2026-6414 / GHSA-x428-ghpx-8j92
More information
Details
Impact
@fastify/staticv9.1.0 and earlier decodes percent-encoded path separators (%2F) before filesystem resolution, but Fastify's router treats them as literal characters. This creates a routing mismatch: route guards on/admin/*do not match/admin%2Fsecret.html, but @fastify/static decodes it to/admin/secret.htmland serves the file.Applications that rely on route-based middleware or guards to protect files served by @fastify/static can be bypassed with encoded path separators.
Patches
Upgrade to
@fastify/static>= 9.1.1.Workarounds
None. Upgrade to the patched version.
Severity
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
@fastify/static vulnerable to path traversal in directory listing
CVE-2026-6410 / GHSA-pr96-94w5-mx2h
More information
Details
Impact
@fastify/staticv9.1.0 and earlier serves directory listings outside the configured static root when thelistoption is enabled. A request such as/public/../outside/causesdirList.path()to resolve a directory outside the root viapath.join()without a containment check.A remote unauthenticated attacker can obtain directory listings for arbitrary directories accessible to the Node.js process, disclosing directory names and filenames that should not be exposed. File contents are not disclosed.
Patches
Upgrade to
@fastify/static>= 9.1.1.Workarounds
Disable directory listing by removing the
listoption from the plugin configuration.Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
@fastify/static vulnerable to Authorization Bypass via Non-Canonical URL Paths
CVE-2026-7120 / GHSA-8pvw-jcv7-9cmj
More information
Details
Impact
@fastify/staticevaluates theallowedPathcallback before normalizing dot segments and duplicate slashes in the pathname used for file resolution. Non-canonical pathnames such as//file,/./file, or/public/../private/filebypassallowedPathfiltering while resolving to the intended file on disk.Applications that use
allowedPathas 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.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
@fastify/static vulnerable to route guard bypass via path traversal
CVE-2026-15074 / GHSA-83w8-p2f5-377r
More information
Details
Impact
@fastify/staticis vulnerable to a bypass of route-based middleware and guards via non-leading..and%2E%2Epath segments.find-my-waydoes not normalize..when matching routes, so a request such as/foo/../deep/secret.txtmatches the static plugin's catch-all instead of the guarded/deep/*. ThegetPathnameForSendhelper introduced by the fix for GHSA-x428-ghpx-8j92 only guards against the%2Fvariant;..and%2E%2Esurvive thedecodeURI+encodeURIround-trip and are then collapsed away by@fastify/send'spath.normalizebefore its own traversal guard runs.Applications that rely on route-based middleware or guards to protect files served by
@fastify/staticcan be bypassed with non-leading dot-dot path segments.Patches
Upgrade to
@fastify/static10.1.1.Workarounds
Do not use route-based middlewares or guards to protect files served by
@fastify/static.Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
fastify/fastify-static (@fastify/static)
v10.1.2Compare Source
What's Changed
Full Changelog: fastify/fastify-static@v10.1.1...v10.1.2
v10.1.1Compare Source
What's Changed
Full Changelog: fastify/fastify-static@v10.1.0...v10.1.1
v10.1.0Compare Source
What's Changed
@fastify/errorfor errors and add optionsuppressWarningby @climba03003 in #599New Contributors
Full Changelog: fastify/fastify-static@v10.0.0...v10.1.0
v10.0.0Compare Source
Breaking Changes
setHeadersnow usingFastifyReplyinstead ofResponse.You should refactor your code to use the
replyhelpers.For example,
What's Changed
New Contributors
Full Changelog: fastify/fastify-static@v9.3.0...v10.0.0
v9.3.0Compare Source
What's Changed
New Contributors
Full Changelog: fastify/fastify-static@v9.2.0...v9.3.0
v9.2.0Compare Source
What's Changed
New Contributors
Full Changelog: fastify/fastify-static@v9.1.3...v9.2.0
v9.1.3Compare Source
What's Changed
Full Changelog: fastify/fastify-static@v9.1.2...v9.1.3
v9.1.2Compare Source
What's Changed
Full Changelog: fastify/fastify-static@v9.1.1...v9.1.2
v9.1.1Compare Source
This fixes CVE CVE-2026-6410 GHSA-pr96-94w5-mx2h.
This fixes CVE CVE-2026-6414 GHSA-x428-ghpx-8j92.
What's Changed
Full Changelog: fastify/fastify-static@v9.1.0...v9.1.1
v9.1.0Compare Source
What's Changed
New Contributors
Full Changelog: fastify/fastify-static@v9.0.0...v9.1.0
v9.0.0Compare Source
What's Changed
Full Changelog: fastify/fastify-static@v8.3.0...v9.0.0
v8.3.0Compare Source
What's Changed
New Contributors
Full Changelog: fastify/fastify-static@v8.2.0...v8.3.0
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.