Skip to content

Backport CVE-2026-25765#1665

Merged
iMacTia merged 1 commit into1.xfrom
mg/backport-cve-2026-25765
Feb 12, 2026
Merged

Backport CVE-2026-25765#1665
iMacTia merged 1 commit into1.xfrom
mg/backport-cve-2026-25765

Conversation

@iMacTia
Copy link
Copy Markdown
Member

@iMacTia iMacTia commented Feb 12, 2026

Description

Backport CVE-2026-25765 to the 1.x releases. To be released as v1.10.5.
Security Advisory: GHSA-33mh-2634-fwr2

Fixes #1664

Protocol-relative URLs (e.g. `//evil.com/path`) bypassed the existing
relative-URL guard in `build_exclusive_url`, allowing an attacker-controlled
URL to override the connection's base host. The `//` prefix matched the
`/` check in `start_with?`, so these URLs were passed through to
`URI#+` which treated them as authority references, replacing the host.

Extend the guard condition so that URLs starting with `//` are prefixed
with `./`, neutralizing the authority component and keeping requests
scoped to the configured base host.

This backport maintains backward compatibility with the 1.x branch's
colon-escaping behavior for opaque URIs like `service:search`.

Security: CVE-2026-25765, GHSA-33mh-2634-fwr2

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vulnerability in v1.10.4

1 participant