CVE-2025-21620 Deno's authorization headers not dropped when redirecting cross-origin
HighCVSS 7.5
EPSS 0.52%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io deno(crates.io) | <= 1.46.3; >= 2.0.0, < 2.1.2 | 2.1.2 | Fixed |
| crates.io deno_fetch(crates.io) | >= 0.0.1, < 0.204.0 | 0.204.0 | Fixed |
| denoland deno | = < 2.1.2 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io deno_fetch(crates.io) | >= 0.0.1, < 0.204.0 | 0.204.0 |
| crates.io deno(crates.io) | <= 1.46.3 | No fix listed |
| crates.io deno(crates.io) | >= 2.0.0, < 2.1.2 | 2.1.2 |
| denoland deno | = < 2.1.2 | No fix listed |
References
- https://github.com/denoland/deno/security/advisories/GHSA-f27p-cmv8-xhm6 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com