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

CVE-2024-27932: Deno's improper suffix match testing for DENO_AUTH_TOKENS

March 6, 2024 (updated March 21, 2024)

Deno improperly checks that an import specifier’s hostname is equal to or a child of a token’s hostname, which can cause tokens to be sent to servers they shouldn’t be sent to. An auth token intended for example.com may be sent to notexample.com.

References

  • github.com/advisories/GHSA-5frw-4rwq-xhcr
  • github.com/denoland/deno
  • github.com/denoland/deno/blob/3f4639c330a31741b0efda2f93ebbb833f4f95bc/cli/auth_tokens.rs
  • github.com/denoland/deno/commit/de23e3b60b066481cc390f459497d5bef42a899b
  • github.com/denoland/deno/security/advisories/GHSA-5frw-4rwq-xhcr
  • nvd.nist.gov/vuln/detail/CVE-2024-27932

Code Behaviors & Features

Detect and mitigate CVE-2024-27932 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 starting from 1.8.0 before 1.40.4

Fixed versions

  • 1.40.4

Solution

Upgrade to version 1.40.4 or above.

Impact 4.6 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

cargo/deno/CVE-2024-27932.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:14:59 +0000.