Skip to content

CVE-2023-49800 Denial of service by abusing `fetchOptions.retry` in nuxt-api-party

HighCVSS 7.5 EPSS 0.80%
Published
Updated
Exploit status
No public exploit known

Description

nuxt-api-party is an open source module to proxy API requests. The library allows the user to send many options directly to ofetch. There is no filter on which options are available. We can abuse the retry logic to cause the server to crash from a stack overflow. fetchOptions are obtained directly from the request body. A malicious user can construct a URL known to not fetch successfully, then set the retry attempts to a high value, this will cause a stack overflow as ofetch error handling works recursively resulting in a denial of service. This issue has been addressed in version 0.22.1. Users are advised to upgrade. Users unable to upgrade should limit ofetch options.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
johannschopplich nuxt api party <= 0.21.3 after 0.21.3 Fixed
npm nuxt-api-party(npm) < 0.22.1 0.22.1 Fixed
johannschopplich nuxt-api-party = < 0.22.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
npm nuxt-api-party(npm) < 0.22.1 0.22.1
johannschopplich nuxt-api-party = < 0.22.1 No fix listed
johannschopplich nuxt api party <= 0.21.3 No fix listed

References