CVE-2026-54171: Excon Excon Does Not Redact Additional Vulnerability

MODERATE
Advisory Identifier: GHSA-48rx-c7pg-q66r
CVSS 6.5
CWE-522 CWE-200 CWE-201
Published
Advisory Summary

CVE-2026-54171 is a MODERATE (CVSS 6.5) excon does not redact additional vulnerability (CWE-522: Insufficiently Protected Credentials) affecting Excon libraries in the RubyGems ecosystem. The issue involves excon does not redact additional sensitive/risky headers when following redirects. Remediation is available by upgrading affected packages to version 1.5.0.

CVE-2026-54171 at a Glance

CVE Identifier CVE-2026-54171
GHSA Identifier GHSA-48rx-c7pg-q66r
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-522: Insufficiently Protected Credentials
Affected Product Excon
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-54171

To remediate this vulnerability, upgrade all affected Excon dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

excon fixed: 1.5.0
Upgrade excon to 1.5.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for excon

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-54171, inspect your project dependencies for Excon:

inspect dependencies for excon

Analyze the terminal output to locate any version of Excon in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-522: Insufficiently Protected Credentials, where the product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval. In Excon, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact The redirect follower middleware previously failed to strip a number of headers that are known to be sensitive and did not provide a way to provide a custom list of headers to strip. _What kind of vulnerability is it? Who is impacted?_ This could cause inadvertent leakage of sensitive data for users of the RedirectFollower middleware in cases where the initial request includes header information that is not intended for the new target. ### Patches Patch exists and is released in v1.5.0 ### Workarounds Users can backport the [fix](https://github.com/excon/excon/commit/ea89a35308a12f4b791b6c50f2cbd33f94889fa3) to a custom redirect follower middleware.

CVE-2026-54171 Affected Excon Versions

1 component(s)
Fixed Versions:
1.5.0
Product / Package Ecosystem Affected Versions Fixed Version
excon
RubyGems
< 1.5.0
1.5.0

References

Frequently Asked Questions

What is CVE-2026-54171?
CVE-2026-54171 is a security vulnerability in Excon involving Excon does not redact additional sensitive/risky headers when following redirects under CWE-522: Insufficiently Protected Credentials.
Which Excon versions are affected?
Affected versions include releases prior to 1.5.0 across affected packages: excon.
What version fixes CVE-2026-54171?
Upgrading to 1.5.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is excon affected?
Yes, excon is affected in releases prior to 1.5.0. Upgrade your dependency to 1.5.0 or later.
What is the CVSS score of CVE-2026-54171?
CVE-2026-54171 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2026-54171?
CVE-2026-54171 is classified under CWE-522: Insufficiently Protected Credentials (The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.).
How can I check RubyGems dependencies for CVE-2026-54171?
Run the dependency tree command: 'inspect dependencies for excon'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-48rx-c7pg-q66r",
  "modified" : "2026-07-21T18:11:28Z",
  "published" : "2026-07-10T20:37:29Z",
  "aliases" : [ "CVE-2026-54171" ],
  "summary" : "Excon does not redact additional sensitive/risky headers when following redirects",
  "details" : "### Impact\nThe redirect follower middleware previously failed to strip a number of headers that are known to be sensitive and did not provide a way to provide a custom list of headers to strip. \n\n_What kind of vulnerability is it? Who is impacted?_\nThis could cause inadvertent leakage of sensitive data for users of the RedirectFollower middleware in cases where the initial request includes header information that is not intended for the new target.\n\n### Patches\nPatch exists and is released in v1.5.0\n\n### Workarounds\nUsers can backport the [fix](https://github.com/excon/excon/commit/ea89a35308a12f4b791b6c50f2cbd33f94889fa3) to a custom redirect follower middleware.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "excon"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.5.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/excon/excon/security/advisories/GHSA-48rx-c7pg-q66r"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-54171"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/excon/excon/pull/901"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/excon/excon/commit/ea89a35308a12f4b791b6c50f2cbd33f94889fa3"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/excon/excon"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/excon/CVE-2026-54171.yml"
  }, {
    "type" : "WEB",
    "url" : "https://www.cve.org/CVERecord?id=CVE-2026-54171"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-201", "CWE-522" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-10T20:37:29Z",
    "nvd_published_at" : "2026-07-17T20:17:26Z"
  }
}