GHSA-7w2g-9mf9-324m

Suggest an improvement
Source
https://github.com/advisories/GHSA-7w2g-9mf9-324m
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-7w2g-9mf9-324m/GHSA-7w2g-9mf9-324m.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-7w2g-9mf9-324m
Aliases
Downstream
Published
2026-09-02T22:11:11Z
Modified
2026-09-02T22:15:05Z
Severity
  • 6.9 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
Hurl: Cookies in Cookies section leak when redirecting to a different host
Details

The Bug

Hurl <= 8.0.1 lets you define cookies two ways in a .hurl file:

  1. As a raw Cookie: header in the [Header]/headers area
  2. In a dedicated [Cookies] section (parsed into RequestSpec.cookies)

When following a redirect to a different host, Hurl correctly strips security-sensitive data (Authorization, Cookie header, and basic-auth user) to avoid leaking credentials cross-host — mirroring libcurl's default behavior. But it only stripped the cookie that came in as a header. Cookies declared in the [Cookies] section were carried over to the new host unchanged — a credential-leak bug.

Hurl file that leaks cookies:

GET http://localhost:8000/follow-redirect-basic-auth?change_host=true
[Cookies]
fruit: lemon
HTTP 200

Hurl file that doesn't leak cookie:

GET http://localhost:8000/follow-redirect-basic-auth?change_host=true
Cookie: fruit=lemon
HTTP 200

Patch

With Hurl <= 8.0.1, user can use Cookie header instead of the dedicated [Cookies] section.

Database specific
{
    "cwe_ids": [
        "CWE-201"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-09-02T22:11:11Z",
    "nvd_published_at": "2026-08-20T17:19:15Z",
    "severity": "MODERATE"
}
References

Affected packages

crates.io / hurl

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
8.0.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-7w2g-9mf9-324m/GHSA-7w2g-9mf9-324m.json"