CVE-2026-126348
Addressable is an alternative implementation to the URI …
Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.0.0 until 2.9.1, the pure-Ruby Addressable::IDNA.to_unicode implementation decodes invalid Punycode A-labels instead of returning them unchanged. Labels that decode to ASCII text or fail to convert back to the same A-label can therefore make Addressable::URI#display_uri show a trusted-looking host while host, normalized_host, and the connection target retain the attacker-controlled encoded host. A trusted-name comparison using Addressable::IDNA.to_unicode output can also treat two different hosts as the same without displaying the URI. The native libidn implementation, to_ascii, and normalized_host are unaffected. This issue is fixed in version 2.9.1.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/sporkmonger/addressable/commit/b8a59cc0e03f8704f1d7c8122fc8f7ef8548362d
- github.com/sporkmonger/addressable/releases/tag/addressable-2.9.1
- github.com/sporkmonger/addressable/security/advisories/GHSA-9crm-g4mf-wc5j
- github.com/rubysec/ruby-advisory-db/blob/master/gems/addressable/GHSA-9crm-g4mf-wc5j.yml
- github.com/advisories/GHSA-9crm-g4mf-wc5j
- nvd.nist.gov/vuln/detail/CVE-2026-126348
- cve.org/CVERecord?id=CVE-2026-126348
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.