Addressable native IDNA backend truncates a host at a pct-encoded NUL when normalizing
- CVE-2026-141539
- GHSA-mrrj-5mhw-rcf2
- EUVD-2026-140768
Description
Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.2.5 until 2.10.0, With the native IDNA backend, Addressable::URI#normalized_host passes a percent-encoded NUL after decoding to libidn, which truncates the remainder of the label. An application that checks the original host but uses normalize, origin, display_uri, or normalized_host can be made to send a request to a shortened host that it intended to block. This issue is fixed in version 2.10.0.
Text from the CVE.org record.
Recommendation
addressable project addressable
- If you run a version from 2.2.5 to before 2.10.0update to 2.10.0 or laterMinor version change: check the release notes
Taken from the version ranges of the NVD record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
addressable project addressable
Affected versions Fixed in from 2.2.5 to before 2.10.0 2.10.0 addressableRubyGems
Affected versions Fixed in from 2.2.5 up to 2.9.2 none stated
Product versions from the NVD record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.