{"id":"CVE-2023-49799","published":"2023-12-08T23:45:18Z","modified":"2024-11-27T15:52:46Z","title":"Server-Side Request Forgery in nuxt-api-party","vendor":"johannschopplich","product":"nuxt-api-party","tier":"tail","description":{"text":"`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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00819,"percentile":0.58089,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/johannschopplich/nuxt-api-party/security/advisories/GHSA-3wfp-253j-5jxv","tags":["x_refsource_CONFIRM"]},{"url":"https://fetch.spec.whatwg.org/","tags":["x_refsource_MISC"]},{"url":"https://fetch.spec.whatwg.org/#http-whitespace-byte","tags":["x_refsource_MISC"]},{"url":"https://github.com/johannschopplich/nuxt-api-party/blob/777462e1e3af1d9f8938aa33f230cd8cb6e0cc9a/src/runtime/server/handler.ts#L31","tags":["x_refsource_MISC"]},{"url":"https://infra.spec.whatwg.org/#byte-sequence","tags":["x_refsource_MISC"]}],"priority":{"score":16.9,"factors":[{"name":"EPSS percentile","points":11.62},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"johannschopplich","affectedVersions":[{"vendor":"johannschopplich","product":"nuxt-api-party","versions":["< 0.22.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2023-12-19T15:52:56.008191Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"nuxt-api-party","vulnerableRanges":["<0.22.0"],"patched":["0.22.0"],"from":["GHSA-3wfp-253j-5jxv"],"provenance":"source"}],"summary":{"text":"The nuxt-api-party module, an open source Nuxt package for proxying API requests, has a Server-Side Request Forgery flaw in its absolute-URL check: the regular expression ^https?:// can be bypassed by prefixing the URL with leading whitespace, such as a newline, which the fetch layer strips during normalisation. An attacker with network access and no authentication or user interaction, against a deployment that relies on this check, can send requests to destinations outside the intended whitelist, which may leak credentials or enable SSRF.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:57:27Z"},"euvd":{"id":"EUVD-2023-3089","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-49799","published":"2023-12-08","fixed":"0.22.0","kev":false},{"cve":"CVE-2023-49800","published":"2023-12-08","fixed":"0.22.1","kev":false,"link":{"from":"CVE-2023-49799","to":"CVE-2023-49800","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:nuxt-api-party","fromFixed":"0.22.0","toFixed":"0.22.1","daysApart":0},{"kind":"similar","provenance":"machine","score":0.22,"basis":"same product + description similarity"}]}}],"package":"npm:nuxt-api-party"}}