CVE-2024-27932 json
Deno's improper suffix match testing for DENO_AUTH_TOKENS
published 2024-03-06 2 y ago modified 2026-09-10 1 mo ago also EUVD-2024-0827 , GHSA-5frw-4rwq-xhcr , JLSEC-2026-104
- cvss
- 4.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 48%
- public exploits
- 0
- none known
Summary
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
Patch / fix
- crates.io deno 1.40.4
- julia Deno_jll 2.0.0+0
- denoland deno 1.40.4
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.59% chance of exploitation in the next 30 days, higher than 48% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/denoland/deno/security/advisories/GHSA-5frw-4rwq-xhcr referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
| GitHub | 3.1 | 4.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
| NVD | 3.1 | 4.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
| OSV | 3.1 | 4.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | deno | >=1.8.0, <1.40.4 |
1.40.4 |
| julia | Deno_jll | <2.0.0+0 |
2.0.0+0 |
Affected products
- denoland deno
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
-
github.com
/denoland/deno/commit/de23e3b60b066481cc390f459497d5bef42a899b
web, patch
-
github.com
/denoland/deno/security/advisories/GHSA-5frw-4rwq-xhcr
web, exploit, vendor-advisory
-
github.com
/denoland/deno/blob/3f4639c330a31741b0efda2f93ebbb833f4f95bc/cli/auth_tokens.rs#L89
web, product
-
nvd.nist.gov
/vuln/detail/CVE-2024-27932
advisory, web
-
github.com
/denoland/deno
package
-
github.com
/advisories/GHSA-5frw-4rwq-xhcr
web
Sources
- CVE List CVE-2024-27932
- GitHub Advisory GHSA-5frw-4rwq-xhcr
- NVD CVE-2024-27932
- OSV JLSEC-2026-104
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.