PT-2025-4305 · Deno · Deno
Rexxars
·
Published
2025-01-06
·
Updated
2025-01-07
·
CVE-2025-21620
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
Deno versions prior to 2.1.2
Description
Deno is a JavaScript, TypeScript, and WebAssembly runtime with secure defaults. When a request with the
Authorization header is sent to one domain and the response asks to redirect to a different domain, Deno's fetch() redirect handling creates a follow-up redirect request that keeps the original Authorization header, leaking its content to that second domain.Recommendations
For Deno versions prior to 2.1.2, update to version 2.1.2 or later to resolve the issue. As a temporary workaround, consider disabling the
fetch() function's redirect handling for sensitive requests until a patch is available. Restrict access to the fetch() API to minimize the risk of exploitation. Avoid using the Authorization header in requests that may be redirected to different domains until the issue is resolved.Exploit
Fix
Information Disclosure
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Deno