Description
HTTP::Tiny versions before 0.095 for Perl forward credential headers to cross-origin redirect targets.

When the server returns a 3xx redirect, `_maybe_redirect` follows the `Location:` header and `_prepare_headers_and_cb` re-merges the caller's `headers` argument into the new request, without checking whether the redirect target shares an origin with the original URL. Caller-supplied `Authorization`, `Cookie` and `Proxy-Authorization` headers are therefore re-sent to whatever host the redirect names, across scheme, host or port boundaries, and including `https` to `http` downgrades that expose them in plaintext on the wire.

The HTTP::Tiny POD note that "Authorization headers will not be included in a redirected request" applied only to the URL-userinfo Basic-auth path, not to headers passed explicitly by the caller.
Published: 2026-07-07
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

HTTP::Tiny versions earlier than 0.095 forward Authorization, Cookie, and Proxy-Authorization headers to any redirect target without validating the target’s origin. This credential-exposure flaw allows an attacker who can influence a 3xx redirect response to capture sensitive authentication tokens or session cookies, potentially leading to account takeover or privilege escalation. The weakness is a credential-management issue (CWE-522).

Affected Systems

The affected library is HAARG:HTTP::Tiny. Any version before 0.095 is affected, including releases that include 0.094 and earlier. The vendor advisory recommends upgrading to the 0.095-TRIAL release or a later version.

Risk and Exploitability

The CVSS score of 7.1 indicates a high severity, primarily due to confidentiality impact if credentials are sent to untrusted hosts. The EPSS score of less than 1% suggests that real-world exploitation is currently low but not impossible. The vulnerability is not currently listed in the CISA KEV catalog. Because the flaw is triggered when an attacker can supply or modify a redirect response, the likely attack vector involves an attacker controlling the target server or manipulating traffic to insert a malicious redirect destination. No direct remote code execution is involved, but credential leakage can lead to broader compromise.

Generated by OpenCVE AI on July 26, 2026 at 19:12 UTC.

Remediation

Vendor Solution

Upgrade to HTTP-Tiny 0.095-TRIAL or later.


OpenCVE Recommended Actions

  • Upgrade to HTTP::Tiny 0.095-TRIAL or a later version to prevent automatic forwarding of credential headers on redirects.
  • If the upgrade cannot be performed immediately, disable automatic redirects in HTTP::Tiny (e.g., set follow_redirect manual redirect handler that verifies the redirect target’s origin before re-issuing the request.
  • As a temporary measure, clear or strip Authorization, Cookie, and Proxy-Authorization headers from the subsequent request when a redirect is followed.

Generated by OpenCVE AI on July 26, 2026 at 19:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 07 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
First Time appeared Haarg
Haarg http::tiny
Vendors & Products Haarg
Haarg http::tiny

Tue, 07 Jul 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

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


Tue, 07 Jul 2026 18:15:00 +0000

Type Values Removed Values Added
Description HTTP::Tiny versions before 0.095 for Perl forward credential headers to cross-origin redirect targets. When the server returns a 3xx redirect, `_maybe_redirect` follows the `Location:` header and `_prepare_headers_and_cb` re-merges the caller's `headers` argument into the new request, without checking whether the redirect target shares an origin with the original URL. Caller-supplied `Authorization`, `Cookie` and `Proxy-Authorization` headers are therefore re-sent to whatever host the redirect names, across scheme, host or port boundaries, and including `https` to `http` downgrades that expose them in plaintext on the wire. The HTTP::Tiny POD note that "Authorization headers will not be included in a redirected request" applied only to the URL-userinfo Basic-auth path, not to headers passed explicitly by the caller.
Title HTTP::Tiny versions before 0.095 for Perl forward credential headers to cross-origin redirect targets
Weaknesses CWE-522
References

Subscriptions

Haarg Http::tiny
cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-07-07T20:35:36.874Z

Reserved: 2026-04-25T10:30:05.190Z

Link: CVE-2026-7017

cve-icon Vulnrichment

Updated: 2026-07-07T20:35:36.874Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-26T19:15:03Z

Weaknesses
  • CWE-522

    Insufficiently Protected Credentials