{"id":"CVE-2026-63481","aliases":["CVE-2026-63481","GHSA-7w2g-9mf9-324m"],"related":[],"kind":"vulnerability","state":"published","title":"Hurl: Cookies in Cookies section leak when redirecting to a different host","summary":"Hurl is a command line tool that runs and tests HTTP requests defined in plain text files. In version 8.0.1 and earlier, the redirect handling in packages/hurl/src/http/client.rs strips Authorization and Cookie headers and basic-auth credentials when a redirect changes host, but it carries RequestSpec.cookies created from the dedicated [Cookies] section into the redirected request. An attacker-controlled redirect can therefore receive authentication or session cookies that should remain scoped to the original host. Cookies supplied through a raw Cookie header are stripped and are not affected by this specific path. This issue is reported as fixed in version 8.1.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Hurl is a command line tool that runs and tests HTTP requests defined in plain text files. In version 8.0.1 and earlier, the redirect handling in packages/hurl/src/http/client.rs strips Authorization and Cookie headers and basic-auth credentials when a redirect changes host, but it carries RequestSpec.cookies created from the dedicated [Cookies] section into the redirected request. An attacker-controlled redirect can therefore receive authentication or session cookies that should remain scoped to the original host. Cookies supplied through a raw Cookie header are stripped and are not affected by this specific path. This issue is reported as fixed in version 8.1.0.","source":"cvelist"},{"lang":"en","text":"## The Bug\n\nHurl <= 8.0.1 lets you define cookies two ways in a .hurl file:\n\n1. As a raw Cookie: header in the [Header]/headers area\n2. In a dedicated [Cookies] section (parsed into RequestSpec.cookies)\n\nWhen 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. \n\nHurl file that leaks cookies:\n\n```hurl\nGET http://localhost:8000/follow-redirect-basic-auth?change_host=true\n[Cookies]\nfruit: lemon\nHTTP 200\n```\n\nHurl file that doesn't leak cookie:\n\n```hurl\nGET http://localhost:8000/follow-redirect-basic-auth?change_host=true\nCookie: fruit=lemon\nHTTP 200\n```\n\n## Patch\n\nWith Hurl <= 8.0.1, user can use `Cookie` header instead of the dedicated `[Cookies]` section.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Hurl es una herramienta de línea de comandos que ejecuta y prueba solicitudes HTTP definidas en archivos de texto plano. En la versión 8.0.1 y anteriores, el manejo de redirecciones en packages/hurl/src/http/client.rs elimina los encabezados Autorización y Cookie y las credenciales de autenticación básica cuando una redirección cambia de host, pero lleva las RequestSpec.cookies creadas a partir de la sección dedicada [Cookies] a la solicitud redirigida. Una redirección controlada por un atacante puede, por lo tanto, recibir cookies de autenticación o de sesión que deberían permanecer dentro del ámbito del host original. Las cookies proporcionadas a través de un encabezado Cookie sin procesar son eliminadas y no se ven afectadas por esta ruta específica. Este problema se informa como solucionado en la versión 8.1.0.","source":"nvd"}],"published":"2026-08-20T16:28:24.282Z","modified":"2026-10-18T20:10:00.110Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"}],"cwes":["CWE-201"],"affected":[{"ranges":[{"version":"<= 8.0.1","status":"affected"}],"vendor":"Orange-OpenSource","product":"hurl","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"8.0.1"}],"ecosystem":"crates.io","package":"hurl","purl":"pkg:cargo/hurl","source":"ghsa"}],"references":[{"url":"https://github.com/Orange-OpenSource/hurl/security/advisories/GHSA-7w2g-9mf9-324m","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Orange-OpenSource/hurl/pull/5119","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Orange-OpenSource/hurl/commit/ed91c894c2cf11704422010554037e3ba70b446e","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Orange-OpenSource/hurl/releases/tag/8.0.1","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63481","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/Orange-OpenSource/hurl","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-08-21T21:09:38.291Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-63481","url":"https://www.cve.org/CVERecord?id=CVE-2026-63481","licence":"CVE Terms of Use","modified":"2026-08-21T21:47:24.233Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7w2g-9mf9-324m","url":"https://github.com/advisories/GHSA-7w2g-9mf9-324m","licence":"CC-BY-4.0","modified":"2026-09-02T22:15:05.173Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-63481","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63481","licence":"Public domain","modified":"2026-10-18T20:10:00.110Z"}],"updatedAt":"2026-11-25T22:59:34.667Z","epss":{"score":0.00467,"percentile":0.42072,"date":"2026-12-01T12:00:22.000Z"}}