CVE-2026-48856: httpc leaks Authorization header to cross-origin redirect targets
httpc leaks Authorization header to cross-origin redirect targets
Other sources
Sensitive Data Exposure vulnerability in Erlang OTP inets (httpcresponse module) allows Retrieve Embedded Sensitive Data.
The httpc client forwards the Authorization and Proxy-Authorization request headers to redirect targets without checking whether the redirect crosses an origin boundary. httpcresponse:redirect/2 constructs the redirected request by updating only the host field of the header record; all other fields (including authorization and proxyauthorization) are copied verbatim. The redirect target host is never compared against the original host.
autoredirect defaults to true, so this affects all httpc callers that do not explicitly disable automatic redirects.
An attacker who controls a server that the victim contacts via httpc can issue a cross-origin 3xx redirect to a server they also control. The Authorization header (including Basic credentials derived from URL userinfo via httpcrequest:handleuserinfo/2) is forwarded to the redirect target, allowing credential theft. The same applies to the Proxy-Authorization header.
This vulnerability is associated with program files lib/inets/src/httpclient/httpcresponse.erl.
This issue affects OTP from 17.0 before 29.0.2, 28.5.0.2 and 27.3.4.13 corresponding to inets from 5.10 before 9.7.1, 9.6.2.2 and 9.3.2.6.
— NVD
Sensitive Data Exposure vulnerability in Erlang OTP inets (httpcresponse module) allows Retrieve Embedded Sensitive Data.
The httpc client forwards the Authorization and Proxy-Authorization request headers to redirect targets without checking whether the redirect crosses an origin boundary. httpcresponse:redirect/2 constructs the redirected request by updating only the host field of the header record; all other fields (including authorization and proxyauthorization) are copied verbatim. The redirect target host is never compared against the original host.
autoredirect defaults to true, so this affects all httpc callers that do not explicitly disable automatic redirects.
An attacker who controls a server that the victim contacts via httpc can issue a cross-origin 3xx redirect to a server they also control. The Authorization header (including Basic credentials derived from URL userinfo via httpcrequest:handleuserinfo/2) is forwarded to the redirect target, allowing credential theft. The same applies to the Proxy-Authorization header.
This vulnerability is associated with program files lib/inets/src/httpclient/httpcresponse.erl.
This issue affects OTP from OTP 17.0 before OTP 29.0.2, OTP 28.5.0.2 and OTP 27.3.4.13, corresponding to inets from 5.10 before 9.7.1, 9.6.2.2 and 9.3.2.6.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 26.2.5.21-2 - Upgrade
Upgrade
Erlang OTP (inets/httpc, httpc_response module)to a version that resolves this vulnerability.Fixed in 29.0.2 - Upgrade
Upgrade
Erlang OTP (inets/httpc, httpc_response module)to a version that resolves this vulnerability.Fixed in 28.5.0.2 - Upgrade
Upgrade
Erlang OTP (inets/httpc, httpc_response module)to a version that resolves this vulnerability.Fixed in 27.3.4.13 - Configuration
Disable automatic redirects in httpc callers by setting autoredirect to false, since autoredirect defaults to true and causes Authorization/Proxy-Authorization to be forwarded to cross-origin 3xx redirect targets.
Erlang OTP httpc autoredirect = false
Event History
Frequently Asked Questions
What is the severity of CVE-2026-48856?
CVE-2026-48856 has a high severity rating of 7.1 according to the CVSS.
What kind of data is exposed in CVE-2026-48856?
CVE-2026-48856 exposes sensitive data such as the Authorization and Proxy-Authorization headers.
How does CVE-2026-48856 impact user privacy?
CVE-2026-48856 can lead to unauthorized access to sensitive information because it leaks headers to cross-origin redirect targets.
Which software is affected by CVE-2026-48856?
CVE-2026-48856 affects Erlang OTP, specifically the inets httpc_response module.
How do I fix CVE-2026-48856?
To mitigate CVE-2026-48856, update to a patched version of Erlang OTP that addresses the vulnerability.