SecurityContext

CVE-2023-49799: nuxt-api-party - Server Side Request Forgery

  • Cve: CVE-2023-49799
  • Name: nuxt-api-party - Server Side Request Forgery
  • Description: `nuxt-api-party` is an open source module to proxy API requests. nuxt-api-party attempts to check if the user has passed an absolute URL to prevent the aforementioned attack. This has been recently changed to use the regular expression `^https?://`, however this regular expression can be bypassed by an absolute URL with leading whitespace. For example `\nhttps://whatever.com` which has a leading newline. According to the fetch specification, before a fetch is made the URL is normalized. "To normalize a byte sequence potentialValue, remove any leading and trailing HTTP whitespace bytes from potentialValue.". This means the final request will be normalized to `https://whatever.com` bypassing the check and nuxt-api-party will send a request outside of the whitelist. This could allow us to leak credentials or perform Server-Side Request Forgery (SSRF). This vulnerability has been addressed in version 0.22.1. Users are advised to upgrade. Users unable to upgrade should revert to the previous method of detecting absolute URLs.
  • Impact: Attackers can perform SSRF or leak credentials by bypassing URL validation with leading whitespace.
  • Remediation: Upgrade to version 0.22.1 or revert to previous URL detection method.
  • Vulnerability type: server_side_request_forgery
  • Vulnerability impact: information_disclosure
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Epss score: 0.00819
  • Epss percentile: 0.58127
  • Assignee: [email protected]
  • Published at: 2023-12-09T00:15:07Z
  • Age in days: 1081
  • Modified at: 2026-06-17T06:36:29Z
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-49799
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-918Server-Side Request Forgery

Public exploits

UrlSourceAdded date
https://github.com/johannschopplich/nuxt-api-party/security/advisories/GHSA-3wfp-253j-5jxvnvd2023-12-09

References

UrlSourceTags
https://github.com/johannschopplich/nuxt-api-party/security/advisories/GHSA-3wfp-253j-5jxvnvdExploit, Mitigation, Vendor Advisory
https://github.com/johannschopplich/nuxt-api-party/blob/777462e1e3af1d9f8938aa33f230cd8cb6e0cc9a/src/runtime/server/handler.ts#L31nvdIssue Tracking

Products

ProductAffectedPlatform boundSourcesUrl
johannschopplich:nuxt_api_party<= 0.21.3nonvd/v1/products/johannschopplich/nuxt_api_party

Projects

RepositoryLink kindsIndexedUrl
johannschopplich/nuxt-api-partycommit, package, security_advisoryyes/v1/repositories/johannschopplich/nuxt-api-party

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2023-12-09
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts