Repository navigation
chore(deps): update dependency fast-uri to v3.1.8 [security] - #3966
Merged
Merged
Conversation
5 tasks done
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:
3.1.7→3.1.8Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
fast-uri vulnerable to inconsistent host case normalization via percent-encoded octets
CVE-2026-86472 / GHSA-hrr3-gc8f-f4qj
More information
Details
Impact
fast-urifolds the host to lowercase before it percent-decodes the host, so a percent-encoded uppercase unreserved octet such as%41decodes to a literalAthat is never folded. For a scheme-relative reference (//host) there is no scheme, so the host canonicalization that repairs this on a scheme-bearing URL does not run. As a resultparse,normalize, andequaldisagree on the same host:parse("//%41.com").hostreturns"A.com"whileparse("//a.com").hostandparse("//A.com").hostreturn"a.com", andequal("//%41.com", "//a.com")isfalseeven thoughequal("//A.com", "//a.com")istrue. An application that makes a case-sensitive host decision onfast-urioutput for a scheme-relative reference, for example a host allowlist or denylist that comparesparse(url).hostor usesfast-uri.equal, can be steered past the check with a percent-encoded uppercase octet. Because a hostname is case-insensitive in DNS and HTTP routing, the evading spelling reaches the same host the check meant to gate, so the effect is check evasion rather than reaching a different registrable host.Patches
Upgrade to
fast-uri4.1.5, 3.1.8, or 2.4.7.Workarounds
Compare hosts case-insensitively (lowercase the parsed host before any allowlist or denylist decision), or avoid making case-sensitive host decisions on scheme-relative input until upgrading.
Severity
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
Release Notes
fastify/fast-uri (fast-uri)
v3.1.8Compare Source
This security release fixes the following medium-severity security advisory:
Users of the v3.x release line should upgrade to v3.1.8.
Full Changelog: fastify/fast-uri@v3.1.7...v3.1.8
Configuration
📅 Schedule: (in timezone Europe/Zurich)
🚦 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.