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

- Severity: Medium 4.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.59%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-03-06T17:03:36.000Z
- Modified: 2026-09-10T03:50:10.161Z
- Also known as: GHSA-5frw-4rwq-xhcr
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Deno is a JavaScript, TypeScript, and WebAssembly runtime. Starting in version 1.8.0 and prior to version 1.40.4, 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`. Anyone who uses DENO_AUTH_TOKENS and imports potentially untrusted code is affected. Version 1.40.0 contains a patch for this issue

(As written by CVE List.)

## Affected

- denoland deno: >= 1.8.0, < 1.40.4; from 1.8.0 before 1.40.4
- deno (crates.io): from 1.8.0 before 1.40.4
- deno deno: from 1.8.0 before 1.40.4

## Every score

- GitHub_M: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`

## References

- <https://github.com/denoland/deno/security/advisories/GHSA-5frw-4rwq-xhcr> (exploit, vendor-advisory, web)
- <https://github.com/denoland/deno/commit/de23e3b60b066481cc390f459497d5bef42a899b> (patch, web)
- <https://github.com/denoland/deno/blob/3f4639c330a31741b0efda2f93ebbb833f4f95bc/cli/auth_tokens.rs#L89> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-27932> (advisory)
- <https://github.com/denoland/deno> (package)

## Sources

- CVE List: [CVE-2024-27932](https://www.cve.org/CVERecord?id=CVE-2024-27932), CVE Terms of Use, modified 2024-08-05
- GitHub Advisory Database: [GHSA-5frw-4rwq-xhcr](https://github.com/advisories/GHSA-5frw-4rwq-xhcr), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-27932](https://nvd.nist.gov/vuln/detail/CVE-2024-27932), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-27932 · Whole record: https://cve.day/CVE-2024-27932.json · Rebuilt by cve.day 2026-11-25T22:58:37.793Z
