# JLSEC-2026-103: Insufficient permission checking in `Deno.makeTemp*` APIs

- Severity: Medium 6.5 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-04-14T13:10:46.494Z
- Modified: 2026-07-18T00:01:27.512Z
- Related: CVE-2024-27931, GHSA-hrqr-jv8w-v9jh, EUVD-2024-0943

## Description

### Impact

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. The permission check would prompt for the base directory of the API, but the final file that was created would be outside of this directory:

```
$ mkdir /tmp/good
$ mkdir /tmp/bad
$ deno repl --allow-write=/tmp/good
> Deno.makeTempFileSync({ dir: "/tmp/bad" })
┌ ⚠️  Deno requests write access to "/tmp/bad".
├ Requested by `Deno.makeTempFile()` API.
├ Run again with --allow-write to bypass this prompt.
└ Allow? [y/n/A] (y = yes, allow; n = no, deny; A = allow all write permissions) > n
❌ Denied write access to "/tmp/bad".
Uncaught PermissionDenied: Requires write access to "/tmp/bad", run again with the --allow-write flag
    at Object.makeTempFileSync (ext:deno_fs/30_fs.js:176:10)
    at <anonymous>:1:27
> Deno.makeTempFileSync({ dir: "/tmp/good", prefix: "../bad/" })
"/tmp/good/../bad/a9432ef5"
$ ls -l /tmp/bad/a9432ef5
-rw-------@ 1 user  group  0 Mar  4 09:20 /tmp/bad/a9432ef5
```

### Patches

This is fixed in Deno 1.41.1.

(As written by Julia Security Advisories.)

## Affected

- Deno_jll (Julia): before 2.0.0+0

## References

- <https://github.com/advisories/GHSA-hrqr-jv8w-v9jh> (web)
- <https://github.com/denoland/deno/security/advisories/GHSA-hrqr-jv8w-v9jh> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-27931> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-103](https://osv.dev/vulnerability/JLSEC-2026-103), CC-BY-4.0, modified 2026-07-18

---

Page: https://cve.day/JLSEC-2026-103 · Whole record: https://cve.day/JLSEC-2026-103.json · Rebuilt by cve.day 2026-11-25T22:56:25.839Z
