MEDIUMCVSS v3.1 4.8Vulnerability

CVE-2026-141539

### Impact With the native IDNA backend, which Addressable uses when the `idn-ruby` gem is installed, a host with a pct-encoded NUL is cut short when it is normalized. `Addressable::URI#normalized_host` decodes the host and passes each label to libidn, which reads the NUL as the end of the string and drops the rest of the label. `http://internal.example%00x/` normalizes to `http://internal.example/`. `#host` and `#to_s` keep the host as written, while `#normalize`, `#normalized_host`, `#normalized_authority`, `#normalized_site`, `#origin` and `#display_uri` give the shortened host, and `#==` treats the URI as equal to one with the shortened host. An application that checks one form and uses the other can be made to send a request to a host it meant to block: a denylist check of `uri.host` lets `internal.example%00x` through, and a request built from `uri.normalize` or `uri.origin` goes to `internal.example`. An application would need to mix the two to be vulnerable. The pure-Ruby IDNA backend, used when `idn-ruby` isn't installed, keeps the NUL and isn't affected. ### Affected Versions This vulnerability affects Addressable >= 2.2.5 when the `idn-ruby` gem is installed. It is fixed in 2.10.0, where the native backend leaves a label with a NUL unchanged, as the pure-Ruby backend does. ### Workarounds - Check the same host you use: if the request is made from `uri.normalize` or `uri.origin`, check `uri.normalize.host`, not `uri.host`. - Reject a URI whose host contains `%00`. - Remove the `idn-ruby` gem, so Addressable uses the pure-Ruby backend. ### Credits Found by Bob Aman (@sporkmonger). ### For more information If there are any questions or comments about this advisory: * [Open an issue](https://github.com/sporkmonger/addressable/issues)

Properties

Summary
Addressable native IDNA backend truncates a host at a pct-encoded NUL when normalizing
Severity
medium
Nvd fetched at
2026-12-02T06:37:54.190518+00:00
Cvss score
4.8
Cvss severity
MEDIUM
Retrieved at
2026-12-02T06:39:20+00:00
Ghsa published
2026-12-01T23:50:07Z
Source url
https://github.com/advisories/GHSA-mrrj-5mhw-rcf2
Ghsa updated
2026-12-01T23:50:08Z
Ghsa id
GHSA-mrrj-5mhw-rcf2
Last source
GitHub Advisory Database
Score
4.8
Cvss version
3.1
Cve id
CVE-2026-141539
Cvss vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
First seen by Signal
2026-12-01T22:36:00+00:00
Name
CVE-2026-141539
Is ghsa only
false
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Published at
2026-12-01T22:18:04.220

Related Entities (4)

AFFECTS (1)

VULNERABLE_TO (1)

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-141539 (CVSS v3.1 4.8) — Ninja Signal Threat Intelligence | Ninja Signal