{"id":"CVE-2024-27932","published":"2024-03-06T20:45:16Z","modified":"2024-08-05T16:59:34Z","title":"Deno's improper suffix match testing for DENO_AUTH_TOKENS","vendor":"denoland","product":"deno","tier":"tail","description":{"text":"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","provenance":"source","from":"CVE.org"},"cvss":{"score":4.6,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00634,"percentile":0.44874,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/denoland/deno/security/advisories/GHSA-5frw-4rwq-xhcr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/denoland/deno/commit/de23e3b60b066481cc390f459497d5bef42a899b","tags":["x_refsource_MISC"]},{"url":"https://github.com/denoland/deno/blob/3f4639c330a31741b0efda2f93ebbb833f4f95bc/cli/auth_tokens.rs#L89","tags":["x_refsource_MISC"]}],"priority":{"score":12.2,"factors":[{"name":"EPSS percentile","points":8.97},{"name":"CVSS severity","points":3.22}]},"vendorSlug":"denoland","affectedVersions":[{"vendor":"denoland","product":"deno","versions":[">= 1.8.0, < 1.40.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-08-05T16:57:53.068963Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"deno","vulnerableRanges":[">=1.8.0, <1.40.4"],"patched":["1.40.4"],"from":["GHSA-5frw-4rwq-xhcr"],"provenance":"source"}],"summary":{"text":"Deno's handling of DENO_AUTH_TOKENS contains an improper suffix match in the runtime's import specifier checking, which fails to confirm that a hostname is equal to or a subdomain of the host a token was issued for. An attacker who can get a user's Deno process to import code from a server they control can cause the stored authentication token to be sent to that unintended host, for example a token meant for example.com being sent to notexample.com, provided the victim uses DENO_AUTH_TOKENS and imports untrusted code, and the victim must take some action such as running or importing that code.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:30Z"},"euvd":{"id":"EUVD-2024-0827","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-27935","published":"2024-03-06","fixed":"1.36.3","kev":false},{"cve":"CVE-2024-27933","published":"2024-03-06","fixed":"1.39.1","kev":false},{"cve":"CVE-2024-27934","published":"2024-03-06","fixed":"1.40.3","kev":false,"link":{"from":"CVE-2024-27934","to":"CVE-2024-27932","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:deno","fromFixed":"1.40.3","toFixed":"1.40.4","daysApart":0}]}},{"cve":"CVE-2024-27932","published":"2024-03-06","fixed":"1.40.4","kev":false},{"cve":"CVE-2024-27936","published":"2024-03-06","fixed":"1.41.0","kev":false,"link":{"from":"CVE-2024-27932","to":"CVE-2024-27936","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:deno","fromFixed":"1.40.4","toFixed":"1.41.0","daysApart":0}]}},{"cve":"CVE-2024-27931","published":"2024-03-05","fixed":"1.41.1","kev":false},{"cve":"CVE-2024-34346","published":"2024-05-07","fixed":"1.43.1","kev":false}],"package":"crates.io:deno"}}