Denial of service by abusing `fetchOptions.retry` in nuxt-api-party
Description
nuxt-api-party before 0.22.1 allows unauthenticated denial of service via a crafted POST request that sets a high retry value, causing a stack overflow in ofetch.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
nuxt-api-party before 0.22.1 allows unauthenticated denial of service via a crafted POST request that sets a high retry value, causing a stack overflow in ofetch.
Vulnerability
CVE-2023-49800 is a denial-of-service (DoS) vulnerability in the Nuxt module nuxt-api-party, an open-source library that proxies API requests. The root cause is that the module passes user-supplied fetchOptions directly to the underlying HTTP client, ofetch, without filtering which options are allowed [1][3]. The retry option, which controls the number of automatic retries on failure, can be abused to cause a stack overflow.
Exploitation
An attacker can send a single POST request to any proxied endpoint (e.g., /api/__api_party/) with a JSON body containing a path that will force a fetch failure (such as an invalid protocol like x:x) and an extremely high retry value (e.g., 9999999) [3]. Since ofetch handles errors recursively, each failed attempt triggers another retry, quickly exhausting the call stack. The attack does not require authentication or any special privileges other than network access to the Nuxt application [1][3].
Impact
Successful exploitation causes the Node.js server to crash or become completely unresponsive, resulting in a full denial of service. The advisory notes that the server is unusable during the attack and that a single request is sufficient [3]. No data is compromised, but service availability is destroyed.
Mitigation
The issue has been fixed in nuxt-api-party version 0.22.1. Users should upgrade immediately [1][3]. For those unable to upgrade, the recommended workaround is to limit the fetchOptions that can be passed to ofetch at the application level, such as stripping or validating the retry parameter before forwarding the request [1].
AI Insight generated on May 20, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
nuxt-api-partynpm | < 0.22.1 | 0.22.1 |
Affected products
2- johannschopplich/nuxt-api-partyv5Range: < 0.22.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3- github.com/advisories/GHSA-q6hx-3m4p-749hghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2023-49800ghsaADVISORY
- github.com/johannschopplich/nuxt-api-party/security/advisories/GHSA-q6hx-3m4p-749hghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.