Skip to content
OpenAdvisories
High · 7.5 CVE-2025-21620 EUVD-2025-0024GHSA-f27p-cmv8-xhm6

Deno's authorization headers not dropped when redirecting cross-origin

Published Jan 6, 2025 · Updated Jan 7, 2025 · Assigned by GitHub_M

Description

Deno is a JavaScript, TypeScript, and WebAssembly runtime with secure defaults. When you send a request with the Authorization header to one domain, and the response asks to redirect to a different domain, Deno'sfetch() redirect handling creates a follow-up redirect request that keeps the original Authorization header, leaking its content to that second domain. This vulnerability is fixed in 2.1.2.

Affected products

VendorProductAffectedFixed
denoland deno < 2.1.2 —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io deno <= 1.46.3 — GHSA-f27p-cmv8-xhm6
crates.io deno >= 2.0.0, < 2.1.2 2.1.2 GHSA-f27p-cmv8-xhm6
crates.io deno_fetch >= 0.0.1, < 0.204.0 0.204.0 GHSA-f27p-cmv8-xhm6

References