chore: update fast-uri (CVE-2026-16221) - #27
Open
trm-security-agent wants to merge 1 commit into
Open
Conversation
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.
Security Vulnerability Fix
🔒 Vulnerability Summary
CVE ID: CVE-2026-16221
Severity: High
Package:
fast-uriCVSS Score: 7.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N)
Description
A host confusion vulnerability exists in fast-uri due to improper handling of literal backslash characters as authority delimiters. Unlike Node's WHATWG URL parser, fast-uri does not treat backslash as a delimiter, which creates a parsing discrepancy. An attacker can exploit this to redirect requests to unintended destinations, potentially bypassing security controls such as host allowlists, SSRF filtering, or redirect validation.
CWE: CWE-436 (Interpretation Conflict)
🔄 Changes Made
Dependency Update
fast-uri3.1.0(resolved in yarn.lock); overrides/resolutions were set to3.1.23.1.43.1.4Version Selection Rationale
Version
3.1.4is the latest available patch release within the3.1.xline and is the exact version that addresses CVE-2026-16221. There are no newer patch releases in the 3.x major line (4.x exists but would be a major version bump). This is the optimal choice — it includes the security fix with minimal risk of breaking changes.Files Modified
docs/docusaurus/package.json— Updatedoverridesandresolutionsforfast-urifrom3.1.2to3.1.4docs/docusaurus/yarn.lock— Regenerated to resolvefast-uri@3.1.4🛡️ Security Impact
What This Fixes
\) as authority delimiters when parsing URIs, unlike Node's built-in WHATWG URL parser. This interpretation conflict (CWE-436) allows crafted URLs to resolve to different hosts depending on which parser is used.Breaking Changes
Affected Components
fast-uriis a transitive dependency pulled in byajv(JSON schema validator), which is used throughout the Docusaurus documentation build pipeline. It is not used in the StarRocks backend or frontend application code.✅ Validation
Automated Checks
package.jsonoverrides + resolutions)yarn.lock)fast-uriexists in lock file, resolved to3.1.4Compatibility Assessment
This is a patch-level update within the same minor version (3.1.x). The fast-uri changelog shows versions 3.1.2, 3.1.3, and 3.1.4 are all security releases with no API changes.
📚 References
🤖 Automation Note
This PR was automatically generated by TRM Security Agent (PATCH skill).
For questions or issues, please contact the Security or DevOps team.
📋 Reviewer Checklist