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.
Remediation
References
https://github.com/johannschopplich/nuxt-api-party/security/advisories/GHSA-q6hx-3m4p-749h
Related Vulnerabilities
CVE-2011-4969 Vulnerability in maven package org.webjars:jquery
CVE-2020-10991 Vulnerability in maven package org.mule.modules:mule-module-apikit
CVE-2023-32986 Vulnerability in maven package io.jenkins.plugins:file-parameters
CVE-2023-37478 Vulnerability in npm package @pnpm/macos-x64
CVE-2022-0839 Vulnerability in maven package org.liquibase:liquibase-core