fix(security): upgrade fast-uri to 4.1.2 to patch SSRF vulnerabilities - #348
fix(security): upgrade fast-uri to 4.1.2 to patch SSRF vulnerabilities#348KiranHK-code wants to merge 1 commit into
Conversation
|
@KiranHK-code is attempting to deploy a commit to the vallabhatech's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Warning Review limit reached
Next review available in: 48 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
Hi @vallabhatech please review this PR |



Security: Prevent Host Confusion and Path Traversal in fast-uri
Description
This PR addresses security vulnerabilities in
fast-urirelated to URL parsing, normalization, and resolution.The affected parsing behavior can allow specially crafted URLs containing percent-encoded delimiters or dot segments to be interpreted differently than intended. In security-sensitive applications, this may result in host confusion or path traversal and could potentially be exploited to perform SSRF attacks.
Issues addressed
Host confusion via percent-encoded authority delimiters
Path traversal via percent-encoded dot segments
.and..path segments are correctly normalized.Steps to Reproduce
/,?, or#characters.%2e,%2e%2e, or equivalent encoded representations.fast-uri.Expected Behavior
fast-urishould:.and..path segments safely.Changes
This PR:
Testing
Regression tests cover:
/,?, and#characters in URL components.Security Impact
These changes prevent ambiguous URL parsing and normalization that could allow attackers to influence the interpreted destination host or escape an intended URL path.
This reduces the risk of host confusion, path traversal, and SSRF in applications relying on
fast-urifor URL parsing and resolution.fixes #81