CVE-2026-141538 — Addressable — CWE-74 · CWE-436
### Impact `Addressable::URI#user=`, `#password=`, `#userinfo=` and the matching `Addressable::URI.new` options store the value they are given without encoding or rejecting delimiters. A value containing `/`, `?` or `#` ends the userinfo early when the URI is serialized, so `#to_s` names a different host than `#host` and `#origin` report. The URI object keeps the component as assigned, and its own accessors agree with each other: `host` is the host the application set, and `origin` is built from it. `#to_s` joins the components with their delimiters but doesn't encode them, so `user = "[email protected]/"` serializes as `https://[email protected]/@api.example.com/…`. Addressable and Ruby's `URI` both read `evil.example` as the host of that string. A `[` or `]` in the userinfo makes the serialized URI fail to parse, a `:` in the user moves the rest of it into the password, and browsers read a `\` as a `/`, ending the userinfo there. `#normalize` encodes all of these correctly. An application that puts an untrusted value into the userinfo of a URI for a trusted host, checks `host` or `origin`, and then passes `to_s` to an HTTP client sends the request to a host the attacker chose. Headers or a body meant for the trusted service, such as an API token, go with it. The attacker needs the application to build URIs this way, so attack complexity is high. ### Affected Versions This vulnerability affects Addressable >= 2.0.0. In 2.9.2, `#userinfo=` ignores a value without a c
### Impact `Addressable::URI#user=`, `#password=`, `#userinfo=` and the matching `Addressable::URI.new` options store the value they are given without encoding or rejecting delimiters. A value containing `/`, `?` or `#` ends the userinfo early when the URI is serialized, so `#to_s` names a different host than `#host` and `#origin` report. The URI object keeps the component as assigned, and its own accessors agree with each other: `host` is the host the application set, and `origin` is built from it. `#to_s` joins the components with their delimiters but doesn't encode them, so `user = "[email protected]/"` serializes as `https://[email protected]/@api.example.com/…`. Addressable and Ruby's `URI` both read `evil.example` as the host of that string. A `[` or `]` in the userinfo makes the serialized URI fail to parse, a `:` in the user moves the rest of it into the password, and browsers read a `\` as a `/`, ending the userinfo there. `#normalize` encodes all of these correctly. An application that puts an untrusted value into the userinfo of a URI for a trusted host, checks `host` or `origin`, and then passes `to_s` to an HTTP client sends the request to a host the attacker chose. Headers or a body meant for the trusted service, such as an API token, go with it. The attacker needs the application to build URIs this way, so attack complexity is high. ### Affected Versions This vulnerability affects Addressable >= 2.0.0. In 2.9.2, `#userinfo=` ignores a value without a c
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-141538
CVSS 4.8/10 · MEDIUM · 01.12.2026
CWE: CWE-74, CWE-436
Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHAT IS THIS VULNERABILITY?
Summary: ### Impact
Addressable::URI#user=, #password=, #userinfo= and the matching Addressable::URI.new options store the value they are given without encoding or rejecting delimiters. A value containing /, ? or # ends the userinfo early when the URI is serialized, so #to_s names a different host than #host and #origin report. The URI object keeps the component as assigned, and its…
Affected: addressable
⚡ ATTACK VECTOR
Network / Remote (AV:N) · no authentication required (PR:N) · no user interaction (UI:N).
🌍 REAL WORLD IMPACT
All confidential data readable/stealable; limited integrity modification (I:L).
🛡️ REMEDIATION
→ Apply vendor security update for addressable.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.
⚠️ URGENCY
📋 Routine update cycle (30 days)
────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]