Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. deno
  4. ›
  5. CVE-2025-21620

CVE-2025-21620: fetch: Authorization headers not dropped when redirecting cross-origin

January 6, 2025 (updated January 7, 2025)

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.

References

  • github.com/advisories/GHSA-f27p-cmv8-xhm6
  • github.com/denoland/deno
  • github.com/denoland/deno/security/advisories/GHSA-f27p-cmv8-xhm6
  • nvd.nist.gov/vuln/detail/CVE-2025-21620

Code Behaviors & Features

Detect and mitigate CVE-2025-21620 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.46.3, all versions starting from 2.0.0 before 2.1.2

Fixed versions

  • 2.1.2

Solution

Upgrade to version 2.1.2 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Source file

cargo/deno/CVE-2025-21620.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 12 May 2025 12:14:33 +0000.