CVE-2026-141538: Addressable URI userinfo setters store delimiters raw, so the serialized URI names a different host

Published Dec 1, 2026
·
Updated

Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.0.0 until 2.10.0, Addressable::URI#user=, #password=, #userinfo=, and matching Addressable::URI.new options store userinfo values without rejecting or encoding host-changing delimiters. Values containing /, ?, or # can end userinfo early when Addressable::URI#tos serializes the URI. An application that validates the URI object but sends the serialized string can disclose headers or request bodies to an attacker-controlled host. This issue is fixed in version 2.10.0.

Affected Software

1 affected component
rubygems/addressable>=2.0.0<2.10.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.10.0

Event History

Dec 1, 2026
CVE Published
via MITRE·09:44 PM
Data Sourced
via MITRE·09:44 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are realistically exposed to this issue?

Applications using Addressable versions from 2.0.0 up to, but not including, 2.10.0 are exposed when they set user, password, or userinfo values on an Addressable::URI object, validate that object, and then send its serialized to_s value in a request.

2

What must an attacker control to exploit it?

An attacker needs to supply a value used with Addressable::URI#user=, #password=, #userinfo=, or the corresponding Addressable::URI.new options. The supplied userinfo must contain a delimiter such as /, ?, or # that causes serialization to end userinfo early and reinterpret the resulting URI host.

3

What is the impact if exploitation succeeds?

A serialized URI can name an attacker-controlled host even though the application validated the URI object. Requests sent to that host may disclose headers or request bodies.

4

How can I determine whether an application is affected?

Check whether it uses the addressable gem below 2.10.0 and whether untrusted data can reach URI userinfo setters or matching constructor options. Test values containing /, ?, or # and compare the validated URI object with its to_s output to identify host-changing serialization.

5

What should be done if upgrading is not immediately possible?

Do not allow /, ?, or # in values assigned to user, password, or userinfo, and ensure these values are encoded or rejected before URI serialization. Avoid sending requests based on a serialized URI unless the final serialized destination has been validated.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203