{"id":"CVE-2026-141535","summary":"Addressable URI#hostname strips brackets from hosts that aren't IP literals","details":"Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.3.5 until 2.10.0, Addressable accepts bracketed non-IP hosts that are not IPv6 or IPvFuture literals, while Addressable::URI#hostname removes those brackets. Code that checks Addressable::URI#host but connects with Addressable::URI#hostname, including through Net::HTTP, can permit an unresolved bracketed value and then connect to the corresponding loopback or internal hostname. This issue is fixed in version 2.10.0.","aliases":["GHSA-c7j3-jq7p-v3pr"],"modified":"2026-12-01T23:00:12.888616709Z","published":"2026-12-01T21:23:46.176Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/141xxx/CVE-2026-141535.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-20","CWE-436","CWE-918"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/141xxx/CVE-2026-141535.json"},{"type":"FIX","url":"https://github.com/sporkmonger/addressable/commit/b56b49d54f87887fa8f0e42216618eaa9af273de"},{"type":"WEB","url":"https://github.com/sporkmonger/addressable/releases/tag/addressable-2.10.0"},{"type":"ADVISORY","url":"https://github.com/sporkmonger/addressable/security/advisories/GHSA-c7j3-jq7p-v3pr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-141535"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/sporkmonger/addressable","events":[{"introduced":"9c1122c7fa77f4f62768809a0639de73566df12e"},{"fixed":"a12466a0e52fe28a721564b5c51f83a092a7719f"},{"fixed":"b56b49d54f87887fa8f0e42216618eaa9af273de"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"2.3.5"},{"fixed":"2.10.0"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"b56b49d54f87887fa8f0e42216618eaa9af273de"}]},{"original_tag":"addressable-2.10.0","range":[{"fixed":"a12466a0e52fe28a721564b5c51f83a092a7719f"}],"source":"REFERENCES_TAG"}]}}],"versions":["addressable-2.9.2","addressable-2.9.1","addressable-2.9.0","addressable-2.8.10","addressable-2.8.9","addressable-2.8.8","addressable-2.8.7","addressable-2.8.6","addressable-2.8.5","addressable-2.8.4","addressable-2.8.3","addressable-2.8.2","addressable-2.8.1","addressable-2.7.0","addressable-2.6.0","addressable-2.5.2","addressable-2.5.1","addressable-2.5.0","addressable-2.4.0","addressable-2.3.8","addressable-2.3.7","addressable-2.3.6","addressable-2.3.5"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-141535.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N"}]}