CVE-2023-49800

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

State
Published
Severity
7.5 High
Published
Dec 8, 2023
Updated
Aug 2, 2024
Reserved
Nov 30, 2023

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HGitHub_M

Weaknesses

  • CWE-674 Uncontrolled Recursion
  • CWE-400 Uncontrolled Resource Consumption

Affected Products

ProductVersions
nuxt-api-partyjohannschopplich
  • < 0.22.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.