Vulnerabilities in pkg:gem/excon
PACKAGECVE-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.
pkg:gem/excon
Vulnerability advisories affecting package pkg:gem/excon. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-48rx-c7pg-q66r | CVE-2026-54171 | MODERATE | Excon does not redact additional sensitive/risky headers when following redirects |
| GHSA-q58g-455p-8vw9 | CVE-2019-16779 | MODERATE | In RubyGem excon, interrupted Persistent Connections May Leak Response Data |
CVE-2026-54171 at a Glance
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).
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.
Upgrade excon to 1.5.0
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
CVE-2026-54171 Affected Excon Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
excon
|
RubyGems |
< 1.5.0
|
1.5.0
|
References
Frequently Asked Questions
What is CVE-2026-54171?
Which Excon versions are affected?
What version fixes CVE-2026-54171?
Is excon affected?
What is the CVSS score of CVE-2026-54171?
What CWE is associated with CVE-2026-54171?
How can I check RubyGems dependencies for CVE-2026-54171?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}