{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "2.3.5"
                  },
                  {
                    "fixed": "2.10.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "b56b49d54f87887fa8f0e42216618eaa9af273de"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "addressable-2.10.0",
                "range": [
                  {
                    "fixed": "a12466a0e52fe28a721564b5c51f83a092a7719f"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "9c1122c7fa77f4f62768809a0639de73566df12e"
            },
            {
              "fixed": "a12466a0e52fe28a721564b5c51f83a092a7719f"
            },
            {
              "fixed": "b56b49d54f87887fa8f0e42216618eaa9af273de"
            }
          ],
          "repo": "https://github.com/sporkmonger/addressable",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-c7j3-jq7p-v3pr"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-20",
      "CWE-436",
      "CWE-918"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/141xxx/CVE-2026-141535.json"
  },
  "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.",
  "id": "CVE-2026-141535",
  "modified": "2026-12-01T22:45:55.311686103Z",
  "published": "2026-12-01T21:23:46.176Z",
  "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"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Addressable URI#hostname strips brackets from hosts that aren't IP literals"
}