{"answers":{"affected":"2 open source packages ship an affected version, including guzzlehttp/psr7. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-59882 in the wild and no public exploit code.","fix":"Upgrade guzzlehttp/psr7 to 2.12.3 or later.","what":"CVE-2026-59882 is a medium-severity vulnerability in guzzle psr7, published on 8 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-59882 and fix it if it is affected.\n\nWhat it is: CVE-2026-59882 is a medium-severity vulnerability in guzzle psr7, published on 8 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-59882 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- guzzlehttp/psr7 (Packagist): affected all versions; fixed in 2.12.3\n- guzzlehttp/psr7 (Packagist): affected all versions; fixed in 2.12.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-59882/ (Markdown: https://insights.sbomify.com/CVE-2026-59882/index.md)","id":"CVE-2026-59882","markdown":"https://insights.sbomify.com/CVE-2026-59882/index.md","name":"CVE-2026-59882","record":{"aliases":["CLSA-2026-1786346242","DEBIAN-CVE-2026-59882","GHSA-c2w2-prh8-qm98","MINI-24x7-9fm2-hj8g","MINI-38gj-qm28-8vcx","MINI-45qf-h482-58r9","MINI-4r5v-9h2w-5jqx","MINI-7m2w-h9gv-88wm","MINI-9hv4-wmjf-g5cw","MINI-q5m4-mm84-2jrx","MINI-qr8j-3phr-4qj7","MINI-rp6f-pwqq-46xq","UBUNTU-CVE-2026-59882"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"PHP HTTP library","requires_auth":"none","summary":"Attackers can bypass security or routing checks by crafting URIs with invalid host components that are accepted by the library.","user_interaction":"required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"psr-7","vendor":"guzzlephp"}],"cvss":{"score":4.2,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-436","name":"Interpretation Conflict"}],"description":"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.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"guzzlehttp/psr7: Host Confusion via Weak URI Host Validation","id":"CVE-2026-59882","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"other","year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"Guzzle: Cookie Disclosure and Injection via IP-Address Domains","id":"CVE-2026-59883"},"packages":[{"ecosystem":"Packagist","fixed":["2.12.3"],"introduced":["0"],"last_affected":[],"package":"guzzlehttp/psr7","purl":null,"source":"GHSA-c2w2-prh8-qm98"},{"ecosystem":"Packagist","fixed":["2.12.3"],"introduced":["0"],"last_affected":[],"package":"guzzlehttp/psr7","purl":"pkg:composer/guzzlehttp/psr7","source":"GHSA-c2w2-prh8-qm98"}],"prev":{"headline":"AIOHTTP: WebSocket client accepts compressed frames without negotiated permessage-deflate","id":"CVE-2026-59881"},"products":["psr7"],"published":"2026-07-08","related":[{"cvss_score":5.3,"headline":"guzzlehttp/psr7 has Host Confusion via Authority Reinterpretation","id":"CVE-2026-48998","kev_date_added":null,"published":"2026-06-11"},{"cvss_score":5.3,"headline":"guzzlehttp/psr7 has CRLF Injection via URI Host Component","id":"CVE-2026-49214","kev_date_added":null,"published":"2026-06-11"},{"cvss_score":4.8,"headline":"guzzlehttp/psr7: CRLF Injection in HTTP Start-Line Serialization","id":"CVE-2026-55766","kev_date_added":null,"published":"2026-06-23"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-08","vendors":["guzzle"]},"summary":"Attackers can bypass security or routing checks by crafting URIs with invalid host components that are accepted by the library.","url":"https://insights.sbomify.com/CVE-2026-59882/"}