CVE-2026-48856: httpc leaks Authorization header to cross-origin redirect targets

Published Jun 10, 2026
·
Updated

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 OTP 17.0 before OTP 27.3.4.13, OTP 28.5.0.2, and OTP 29.0.2, corresponding to inets from 5.10 before 9.3.2.6, 9.6.2.2, and 9.7.1. Whether OTP before OTP 17.0, corresponding to inets before 5.10, is affected is unknown.

— 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 27.3.4.19, OTP 28.5.0.8, and OTP 29.1.2, corresponding to inets from 5.10 before 9.3.2.8, 9.6.2.4, and 9.8.1. Whether OTP before OTP 17.0, corresponding to inets before 5.10, is affected is unknown.

— MITRE

Affected Software

17 affected componentsFixes available
Erlang OTP>=17.0<29.0.2, >=17.0<28.5.0.2, >=17.0<27.3.4.13
Erlang inets>=5.10<9.7.1, >=5.10<9.6.2.2, >=5.10<9.3.2.6
Microsoft azl3 erlang 26.2.5.20-1<26.2.5.21-2
26.2.5.21-2
Erlang Erlang\/inets>=5.10<9.3.2.6
Erlang Erlang\/inets>=9.6<9.6.2.2
Erlang Erlang\/inets>=9.7<9.7.1
Erlang Erlang\/otp>=17.0<27.3.4.13
Erlang Erlang\/otp>=28.0<28.5.0.2
Erlang Erlang\/otp>=29.0<29.0.2
ubuntu/erlang<1:16.b.3-dfsg-1ubuntu2.2+esm3
1:16.b.3-dfsg-1ubuntu2.2+esm3
ubuntu/erlang<1:18.3-dfsg-1ubuntu3.1+esm4
1:18.3-dfsg-1ubuntu3.1+esm4
ubuntu/erlang<1:20.2.2+dfsg-1ubuntu2+esm4
1:20.2.2+dfsg-1ubuntu2+esm4
ubuntu/erlang<1:22.2.7+dfsg-1ubuntu0.5+esm3
1:22.2.7+dfsg-1ubuntu0.5+esm3
ubuntu/erlang<1:24.2.1+dfsg-1ubuntu0.8
1:24.2.1+dfsg-1ubuntu0.8
ubuntu/erlang<1:25.3.2.8+dfsg-1ubuntu4.8
1:25.3.2.8+dfsg-1ubuntu4.8
ubuntu/erlang*
ubuntu/erlang<1:27.3.4.6+dfsg-1ubuntu0.2
1:27.3.4.6+dfsg-1ubuntu0.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 26.2.5.21-2
  2. Upgrade

    Upgrade ubuntu/erlang to a version that resolves this vulnerability.

    Fixed in 1:16.b.3-dfsg-1ubuntu2.2+esm3
  3. Upgrade

    Upgrade ubuntu/erlang to a version that resolves this vulnerability.

    Fixed in 1:18.3-dfsg-1ubuntu3.1+esm4
  4. Upgrade

    Upgrade ubuntu/erlang to a version that resolves this vulnerability.

    Fixed in 1:20.2.2+dfsg-1ubuntu2+esm4
  5. Upgrade

    Upgrade ubuntu/erlang to a version that resolves this vulnerability.

    Fixed in 1:22.2.7+dfsg-1ubuntu0.5+esm3
  6. Upgrade

    Upgrade ubuntu/erlang to a version that resolves this vulnerability.

    Fixed in 1:24.2.1+dfsg-1ubuntu0.8
  7. Upgrade

    Upgrade ubuntu/erlang to a version that resolves this vulnerability.

    Fixed in 1:25.3.2.8+dfsg-1ubuntu4.8
  8. Upgrade

    Upgrade ubuntu/erlang to a version that resolves this vulnerability.

    Fixed in 1:27.3.4.6+dfsg-1ubuntu0.2
  9. Upgrade

    Upgrade Erlang/OTP to a version that resolves this vulnerability.

    Fixed in 27.3.4.19
  10. Upgrade

    Upgrade Erlang/OTP to a version that resolves this vulnerability.

    Fixed in 28.5.0.8
  11. Upgrade

    Upgrade Erlang/OTP to a version that resolves this vulnerability.

    Fixed in 29.1.2
  12. Configuration

    Disable automatic redirects for httpc callers by setting autoredirect to false.

    Erlang/OTP inets httpc autoredirect = false

Event History

Jun 10, 2026
CVE Published
via MITRE·02:41 PM
Data Sourced
via MITRE·02:41 PM
DescriptionWeakness
Data Sourced
via OSV·04:17 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·04:17 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jun 17, 2026
Data Sourced
via Microsoft·08:01 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-48856?

CVE-2026-48856 has a high severity rating of 7.1 according to the CVSS.

2

What kind of data is exposed in CVE-2026-48856?

CVE-2026-48856 exposes sensitive data such as the Authorization and Proxy-Authorization headers.

3

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.

4

Which software is affected by CVE-2026-48856?

CVE-2026-48856 affects Erlang OTP, specifically the inets httpc_response module.

5

How do I fix CVE-2026-48856?

To mitigate CVE-2026-48856, update to a patched version of Erlang OTP that addresses the vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203