In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade undici to version 7.30.4, 8.14.1 or higher.
undici is an An HTTP/1.1 client, written from scratch for Node.js
Affected versions of this package are vulnerable to Origin Validation Error via a protocol-relative URL misparse in buildRequestUrl (previously new URL(path, origin)) inside the redirect handler. When recording each hop of a redirect chain, a path beginning with // is misread as a protocol-relative URL, causing a hop to an attacker-controlled origin to be recorded as a hop to the trusted origin. An attacker who controls the target of a redirect from a trusted URL - for example through an open redirect - can have their response cached under the trusted URL and served to subsequent callers from the shared cache without either origin being contacted. The same mis-recorded history also allows a cross-origin 304 response to revalidate the trusted cache entry, and with SqliteCacheStore the poisoned entry survives process restarts.
Note: This is only exploitable when a shared MemoryCacheStore or SqliteCacheStore and the composition compose(redirect(), cache()) are used, and the trusted origin redirects to a URL the attacker controls.
Use per-origin dispatchers and cache stores, or disable shared caching on redirect-capable requests.