CVE-2026-91766

Cross-origin credential leak in HTTP stream wrapper redirects

Published Sep 25, 2026 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
Description
When the http:// stream wrapper follows a redirect it forwards the user-supplied Authorization, Cookie and Proxy-Authorization headers unchanged, even when the redirect target is a different host, a different port, or a downgrade from HTTPS to HTTP. A server that can steer a redirect therefore receives credentials that were only meant for the original origin. This is the same class of issue that libcurl fixed in 7.58.0 ( CVE-2018-1000007 https://github.com/advisories/GHSA-g7x2-hrfp-pv5f ).

Analysis

AI-generated

Technical impact

The vulnerability allows PHP’s http:// stream wrapper to forward Authorization, Cookie, and Proxy-Authorization headers across redirects to a different host, port, or when downgrading from HTTPS to HTTP. This can result in credentials intended for an original origin being unintentionally sent to an attacker-controlled target, exposing sensitive authentication data.

Affected Systems

PHP Group’s PHP implementation is affected. No specific product versions are listed, so all PHP installations that use the http:// stream wrapper are potentially impacted until a fix is applied.

Risk and Exploitability

The CVSS score of 5.9 indicates a moderate threat level. No EPSS score is reported, and the issue is not yet listed in the CISA KEV catalog. An attacker with the ability to force an application to redirect to a malicious URL can exploit this flaw to steal credentials. The risk remains contingent on whether the redirect target can be influenced for a given deployment.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest PHP release where this issue is fixed.
  • If an immediate upgrade is not possible, configure PHP to strip Authorization, Cookie, and Proxy-Authorization headers when following redirects or disable automatic redirect following.
  • Continuously monitor PHP security advisories and apply any patch that addresses this redirect header leakage.

Generated by OpenCVE AI on September 26, 2026 at 01:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4819-1 php8.2 security update
Debian DSA Debian DSA DSA-6514-1 php8.4 security update
Ubuntu USN Ubuntu USN USN-8936-1 PHP vulnerabilities
History
Type Values Removed Values Added
First Time appeared Php
Php php
CPEs cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
Vendors & Products Php
Php php
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Php Group
Php Group php
Vendors & Products Php Group
Php Group php
Type Values Removed Values Added
Description When the http:// stream wrapper follows a redirect it forwards the user-supplied Authorization, Cookie and Proxy-Authorization headers unchanged, even when the redirect target is a different host, a different port, or a downgrade from HTTPS to HTTP. A server that can steer a redirect therefore receives credentials that were only meant for the original origin. This is the same class of issue that libcurl fixed in 7.58.0 ( CVE-2018-1000007 https://github.com/advisories/GHSA-g7x2-hrfp-pv5f ).
Title Cross-origin credential leak in HTTP stream wrapper redirects
Weaknesses CWE-200
CWE-522
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-201

    Insertion of Sensitive Information Into Sent Data

  • CWE-522

    Insufficiently Protected Credentials

Sources

Status
PUBLISHED
Assigner
php
Published
Updated
Sep 28, 2026, 1:31 PM
Reserved
Sep 15, 2026, 12:38 AM
Status
Analyzed
Published
Sep 25, 2026, 9:17 PM
Modified
Oct 23, 2026, 1:46 PM
Severity
Moderate
Public date
Sep 25, 2026, 8:40 PM