# CVE-2022-36032: ReactPHP's HTTP server parses encoded cookie names so malicious `__Host-` and `__Secure-` cookies can be sent

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.24%, higher than 70% of CVEs (2026-12-02)
- Published: 2022-09-06T18:20:13.000Z
- Modified: 2026-06-17T04:52:46.817Z
- Also known as: GHSA-w3w9-vrf5-8mx8
- Weaknesses: CWE-20, CWE-565
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

ReactPHP HTTP is a streaming HTTP client and server implementation for ReactPHP. In ReactPHP's HTTP server component versions starting with 0.7.0 and prior to 1.7.0, when ReactPHP is processing incoming HTTP cookie values, the cookie names are url-decoded. This may lead to cookies with prefixes like `__Host-` and `__Secure-` confused with cookies that decode to such prefix, thus leading to an attacker being able to forge cookie which is supposed to be secure. This issue is fixed in ReactPHP HTTP version 1.7.0. As a workaround, Infrastructure or DevOps can place a reverse proxy in front of the ReactPHP HTTP server to filter out any unexpected `Cookie` request headers.

(As written by CVE List.)

## Affected

- reactphp http: >= 0.7.0, < 1.7.0; from 0.7.0 before 1.7.0
- react/http (Packagist): from 0.7.0 before 1.7.0

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/reactphp/http/security/advisories/GHSA-w3w9-vrf5-8mx8> (issue-tracking, patch, third-party-advisory, web)
- <https://github.com/reactphp/http/pull/175> (issue-tracking, patch, third-party-advisory, web)
- <https://github.com/reactphp/http/commit/663c9a3b77b71463fa7fcb76a6676ffd16979dd6> (patch, third-party-advisory, web)
- <https://github.com/reactphp/http/releases/tag/v1.7.0> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-36032> (advisory)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/react/http/CVE-2022-36032.yaml> (web)
- <https://github.com/reactphp/http> (package)

## Sources

- CVE List: [CVE-2022-36032](https://www.cve.org/CVERecord?id=CVE-2022-36032), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-w3w9-vrf5-8mx8](https://github.com/advisories/GHSA-w3w9-vrf5-8mx8), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-36032](https://nvd.nist.gov/vuln/detail/CVE-2022-36032), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-36032 · Whole record: https://cve.day/CVE-2022-36032.json · Rebuilt by cve.day 2026-11-25T22:58:14.710Z
