Skip to content

Set user and password last when constructing an URI#894

Merged
ekohl merged 1 commit intomasterfrom
uri-bugfix
Jan 27, 2026
Merged

Set user and password last when constructing an URI#894
ekohl merged 1 commit intomasterfrom
uri-bugfix

Conversation

@evgeni
Copy link
Member

@evgeni evgeni commented Jan 27, 2026

To fix CVE-2025-27221, the uri gem started invalidating the set username and password when the host of an URI changes. To still correctly construct the URI in our case, set username and password last, which will correctly preserve it.

To fix CVE-2025-27221, the `uri` gem started invalidating the set
username and password when the host of an URI changes. To still
correctly construct the URI in our case, set username and password last,
which will correctly preserve it.
@ekohl ekohl merged commit 2f7aa5d into master Jan 27, 2026
9 checks passed
@ekohl ekohl deleted the uri-bugfix branch January 27, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants