CVE-2026-3783
curl: curl: Information disclosure via OAuth2 bearer token leakage during HTTP(S) redirect
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · March 11, 2026
Updated · November 2, 2026
Description
A flaw was found in curl. When an OAuth2 bearer token is used for an HTTP(S) transfer that redirects to a second URL, curl could unintentionally leak the token. This occurs if the second hostname has entries in the .netrc file, allowing the bearer token intended for the first host to be sent to the redirected host. This information disclosure could allow an attacker to gain unauthorized access.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
To prevent the leakage of OAuth2 bearer tokens, ensure that .netrc files are carefully managed. Avoid configuring .netrc entries for untrusted or unknown hostnames, particularly when curl is used with OAuth2 bearer tokens and is configured to follow redirects. Regularly review and restrict the scope of credentials stored in .netrc files to only explicitly trusted destinations.
CVSS / CWE
CVSS 3.1 · 5.7CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
CWE-201 · Insertion of Sensitive Information Into Sent Data