CVE-2026-54297: Faraday Denial of Service Vulnerability
HIGHCVE-2026-54297 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-674: Uncontrolled Recursion) affecting Faraday libraries in the RubyGems ecosystem. The issue involves uncontrolled recursion in nestedparamsencoder allows stack exhaustion dos via deeply nested query parameters. Remediation is available by upgrading affected packages to version 2.14.3, 1.10.6.
CVE-2026-54297 at a Glance
Security Impact
CVSS: 7.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:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2026-54297
To remediate this vulnerability, upgrade all affected Faraday 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 faraday to 2.14.3
Upgrade faraday to 1.10.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for faraday
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-54297, inspect your project dependencies for Faraday:
inspect dependencies for faraday
Analyze the terminal output to locate any version of Faraday in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.14.3), 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-674: Uncontrolled Recursion, where the product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack. In Faraday, 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-54297 Affected Faraday Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
faraday
|
RubyGems |
≥ 2.0.0
< 2.14.3
|
2.14.3
|
|
faraday
|
RubyGems |
≥ 1.0.0
< 1.10.6
|
1.10.6
|
References
Frequently Asked Questions
What is CVE-2026-54297?
Which Faraday versions are affected?
What version fixes CVE-2026-54297?
Is faraday affected?
What is the CVSS score of CVE-2026-54297?
What CWE is associated with CVE-2026-54297?
How can I check RubyGems dependencies for CVE-2026-54297?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-98m9-hrrm-r99r",
"modified" : "2026-06-26T19:27:19Z",
"published" : "2026-06-19T19:35:43Z",
"aliases" : [ "CVE-2026-54297" ],
"summary" : "Faraday: Uncontrolled recursion in NestedParamsEncoder allows stack exhaustion DoS via deeply nested query parameters",
"details" : "`Faraday::NestedParamsEncoder`, the default nested query parameter encoder/decoder in Faraday, decodes nested query strings without enforcing a maximum nesting depth.\n\nA crafted query string such as:\n\n```text\na[x][x][x][x]...[x]=1\n```\n\ncauses Faraday to build a deeply nested Ruby `Hash` structure. The internal `dehash` routine then recursively walks this attacker-controlled structure without a depth limit. At sufficient depth, Ruby raises an uncaught `SystemStackError` (`stack level too deep`), crashing the calling thread or worker. This can lead to denial of service in applications that pass attacker-controlled query strings to Faraday's nested query parsing or URL-building paths.\n\nThis has been patched in version 2.14.3 and backported to 1.10.6.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "faraday"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.14.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.14.2"
}
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "faraday"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0"
}, {
"fixed" : "1.10.6"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.10.5"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/lostisland/faraday/security/advisories/GHSA-98m9-hrrm-r99r"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-54297"
}, {
"type" : "WEB",
"url" : "https://github.com/lostisland/faraday/pull/1681"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/lostisland/faraday"
}, {
"type" : "WEB",
"url" : "https://github.com/lostisland/faraday/releases/tag/v1.10.6"
}, {
"type" : "WEB",
"url" : "https://github.com/lostisland/faraday/releases/tag/v2.14.3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-674" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-19T19:35:43Z",
"nvd_published_at" : "2026-06-24T17:17:29Z"
}
}