Skip to content
Heist/ feed
Back to feed
High

httpc leaks Authorization header to cross-origin redirect targets

Type: advisorySources: OSV

Sensitive Data Exposure vulnerability in Erlang OTP inets (httpc_response 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. httpc_response:redirect/2 constructs the redirected request by updating only the host field of the header record; all other fields (including authorization and proxy_authorization) 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 httpc_request:handle_user_info/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/http_client/httpc_response.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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-48856
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 02:25 UTC · Revision 1

Source evidence

httpc leaks Authorization header to cross-origin redirect targets

core-osv · Original source

Published 10 Jun 2026, 14:41 UTC

Sensitive Data Exposure vulnerability in Erlang OTP inets (httpc_response 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. httpc_response:redirect/2 constructs the redirected request by updating only the host field of the header record; all other fields (including authorization and proxy_authorization) 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 httpc_request:handle_user_info/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/http_client/httpc_response.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.

osv:CVE-2026-48856
Complete source record
{
  "id": "74671a031ca810ef9cd7bef3b94117ed343924cd44fddda9e5fb371c6be2364f",
  "url": "https://osv.dev/vulnerability/CVE-2026-48856",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "httpc leaks Authorization header to cross-origin redirect targets",
    "summary": "Sensitive Data Exposure vulnerability in Erlang OTP inets (httpc_response 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. httpc_response:redirect/2 constructs the redirected request by updating only the host field of the header record; all other fields (including authorization and proxy_authorization) 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 httpc_request:handle_user_info/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/http_client/httpc_response.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.",
    "evidence": "osv:CVE-2026-48856",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-48856",
      "aliases": [
        "CVE-2026-48856",
        "EEF-CVE-2026-48856",
        "GHSA-m75x-4vwg-ggjh"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/erlang/otp",
              "type": "GIT",
              "events": [
                {
                  "introduced": "07b8f441ca711f9812fad9e9115bab3c3aa92f79"
                },
                {
                  "fixed": "f835a5a32aeeb70778c958b5c01a401973e8fbe2"
                },
                {
                  "introduced": "9e6f6742c4d9e9915ee8af0dcb7d97cf1f836116"
                },
                {
                  "fixed": "4567096bddd1ecddb7c973019ca7e769f486aa8f"
                },
                {
                  "introduced": "550d7b7898706c7822362c42e7b93120c1d1f29a"
                },
                {
                  "fixed": "36b336d7675edfb976768465c5067bc8bc16ee9a"
                },
                {
                  "fixed": "f78fae9294886f95545a2212671282eda230def1"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "17.0"
                      },
                      {
                        "fixed": "27.3.4.13"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "28.0"
                      },
                      {
                        "fixed": "28.5.0.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "29.0"
                      },
                      {
                        "fixed": "29.0.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "f78fae9294886f95545a2212671282eda230def1"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "patch-base-27",
            "OTP-27.3.4",
            "patch-base-28",
            "OTP-28.5",
            "OTP-29.0",
            "OTP-27.3.4.9",
            "OTP-27.3.4.10",
            "OTP-28.4",
            "OTP-27.3.4.12",
            "OTP-28.5.0.1",
            "OTP-29.0.1",
            "OTP-27.0",
            "OTP-27.3.4.11",
            "OTP-28.0",
            "OTP-27.3.4.8",
            "OTP-27.3.4.6",
            "OTP-27.3.4.7",
            "OTP-27.3",
            "OTP-27.3.4.5",
            "OTP-27.3.4.4",
            "OTP-28.1",
            "OTP-27.3.4.3",
            "OTP-27.3.3",
            "OTP-27.3.4.2",
            "OTP-26.0",
            "OTP-25.0",
            "OTP-27.3.4.1",
            "OTP-27.3.2",
            "OTP-27.2",
            "OTP-27.3.1",
            "OTP-27.1",
            "OTP-27.0-rc3",
            "OTP-27.0-rc2",
            "OTP-27.0-rc1",
            "OTP-24.0",
            "OTP-26.0-rc3",
            "OTP-26.0-rc2",
            "OTP-26.0-rc1",
            "OTP-23.0",
            "OTP-21.0",
            "OTP-25.0-rc3",
            "OTP-25.0-rc2",
            "OTP-25.0-rc1",
            "OTP-22.0",
            "OTP-24.0-rc3",
            "OTP-24.0-rc2",
            "OTP-24.0-rc1",
            "OTP-23.0-rc3",
            "OTP-23.0-rc2",
            "OTP-23.0-rc1",
            "OTP-20.0",
            "OTP-22.0-rc3",
            "OTP-22.0-rc2",
            "OTP-22.0-rc1",
            "OTP-19.0",
            "OTP-21.0-rc2",
            "OTP-18.0",
            "OTP-21.0-rc1",
            "OTP-17.0",
            "OTP-20.0-rc2",
            "OTP-20.0-rc1",
            "OTP-19.0-rc2",
            "OTP-19.0-rc1",
            "OTP-18.0-rc1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-48856.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:46.088929742Z",
      "provider": "osv",
      "references": [
        "https://cna.erlef.org/cves/CVE-2026-48856.html",
        "https://github.com",
        "https://osv.dev/vulnerability/EEF-CVE-2026-48856",
        "https://www.erlang.org/doc/system/versions.html#order-of-versions",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48856.json",
        "https://github.com/erlang/otp/security/advisories/GHSA-m75x-4vwg-ggjh",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-48856",
        "https://github.com/erlang/otp/commit/f78fae9294886f95545a2212671282eda230def1",
        "https://github.com/erlang/otp"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-601"
        ],
        "cna_assigner": "EEF",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "5.10"
                  },
                  {
                    "fixed": "9.3.2.8"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "ChangesAt"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48856.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-48856",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 514260,
  "published_at": "2026-06-10T14:41:51.616+00:00"
}