Skip to content
Heist/ feed
Back to feed
Medium

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-36032
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 21:02 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 6 Sept 2022, 18:20 UTC

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.

osv:CVE-2022-36032
Complete source record
{
  "id": "835c293d86e367373669c806d3dee2b434d7ddeb9a9f45536bbfd1818fe171f0",
  "url": "https://osv.dev/vulnerability/CVE-2022-36032",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ReactPHP's HTTP server parses encoded cookie names so malicious `__Host-` and `__Secure-` cookies can be sent",
    "summary": "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.",
    "evidence": "osv:CVE-2022-36032",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2022-36032",
      "aliases": [
        "CVE-2022-36032",
        "GHSA-w3w9-vrf5-8mx8"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/reactphp/http",
              "type": "GIT",
              "events": [
                {
                  "introduced": "8c806074b6637cfd6cbb7049d5d500b18bb56cd4"
                },
                {
                  "fixed": "4a1e85382e8c2a9e0fdb8ac04e94585da2083bfa"
                },
                {
                  "fixed": "663c9a3b77b71463fa7fcb76a6676ffd16979dd6"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:reactphp:http:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.7.0"
                      },
                      {
                        "fixed": "1.7.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "663c9a3b77b71463fa7fcb76a6676ffd16979dd6"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "4a1e85382e8c2a9e0fdb8ac04e94585da2083bfa"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v1.7.0"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.6.0",
            "v1.5.0",
            "v1.4.0",
            "v1.3.0",
            "v1.2.0",
            "v1.1.0",
            "v1.0.0",
            "v0.8.7",
            "v0.8.6",
            "v0.8.5",
            "v0.8.4",
            "v0.8.3",
            "v0.8.2",
            "v0.8.1",
            "v0.8.0",
            "v0.7.4",
            "v0.7.3",
            "v0.7.2",
            "v0.7.1",
            "v0.7.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-36032.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:39.751943886Z",
      "provider": "osv",
      "references": [
        "https://github.com/reactphp/http/releases/tag/v1.7.0",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/36xxx/CVE-2022-36032.json",
        "https://github.com/reactphp/http/security/advisories/GHSA-w3w9-vrf5-8mx8",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-36032",
        "https://github.com/reactphp/http/commit/663c9a3b77b71463fa7fcb76a6676ffd16979dd6",
        "https://github.com/reactphp/http/pull/175"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-20",
          "CWE-565"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/36xxx/CVE-2022-36032.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-36032",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 506994,
  "published_at": "2022-09-06T18:20:13+00:00"
}