{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "2.12.3"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "ddd64f17d4cc1f7e5ffe6fd2c989ec7221712580"
            },
            {
              "fixed": "7ec62dc3f44aa218487dbed81a9bf9bc647be55d"
            }
          ],
          "repo": "https://github.com/guzzle/psr7",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-c2w2-prh8-qm98"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-436"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59882.json"
  },
  "details": "guzzlehttp/psr7 is a PSR-7 HTTP message library implementation in PHP. Prior to 2.12.3, Uri::assertValidHost() does not reject URI host components containing authority delimiters, embedded ports, or malformed IPv6 brackets, allowing Uri::getHost() to disagree with the URI authority used for security or routing decisions. This issue is fixed in version 2.12.3.",
  "id": "CVE-2026-59882",
  "modified": "2026-07-12T03:54:29.830702719Z",
  "published": "2026-07-08T15:50:03.077Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/guzzle/psr7/releases/tag/2.12.3"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59882.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/guzzle/psr7/security/advisories/GHSA-c2w2-prh8-qm98"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-59882"
    },
    {
      "type": "FIX",
      "url": "https://github.com/guzzle/psr7/commit/ddd64f17d4cc1f7e5ffe6fd2c989ec7221712580"
    },
    {
      "type": "FIX",
      "url": "https://github.com/guzzle/psr7/pull/811"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "guzzlehttp/psr7: Host Confusion via Weak URI Host Validation"
}