Cached tasks can now run in an experimental Linux sandbox. The sandbox blocks reads and writes that the task's cache declaration doesn't cover, so the task fails instead of storing a wrong result. mise hook-env, mise env and mise ls also run faster in projects with many tools.
Added
-
cache.sandboxfor cached tasks (experimental, enforced on Linux only). A cached task is only correct if everything that affects its result is part of the cache key. Withcache.sandbox = true, mise uses Landlock to restrict the task to its cache declaration. A read or write outside that declaration now makes the task fail instead of producing a cache entry that mise could restore for inputs it never checked.cache.auditonly reports these reads after the run. #16043 (@jdx)[settings] experimental = true [tasks.build] run = "cat src/app.txt notes.txt > dist/out.txt" sources = ["src/**"] outputs = ["dist"] cache = { enabled = true, sandbox = true }
In this example
notes.txtis not listed insources, so the task fails withPermission denied.- Reads: files matched by
sources, the config files that define the task, outputs of its cacheddependstasks, system paths and mise-installed tools. File names in the task directory can be listed, but other files' contents cannot be read. - Writes: only the directories that hold
outputs, plus a privateTMPDIRthat all of the task'srunentries share. The shared/tmpis blocked. - Environment and network: environment variables are limited to the essential ones, the task's own
env,cache.env,task_config.global_envandpass_through_env. Network access is blocked. - Extra paths: add them with
allow_readandallow_write. The paths become part of the cache key, but file contents do not, so a file that changes the result belongs insources. Tools mise didn't install, such as a toolchain in~/.cargo, need anallow_readentry. - Outputs: outputs can't share a directory with sources. For example,
sources = ["*.c"]withoutputs = ["*.o"]is an error before the task starts. mise creates output directories before the run and removes any the task leaves empty. - Configuration:
task_config.cacheaccepts the key, so you can turn it on for every eligible task.--task-cache offdoes not turn the sandbox off.mise tasks ls --jsonandmise tasks info --jsonshow asandboxfield insidecache. - Cache entries: entries made in the sandbox are keyed separately, so mise never restores an entry stored without the sandbox for a task that asks for it.
- Other platforms: on macOS and Windows, mise warns once and runs the task without the sandbox.
- Reads: files matched by
Changed
- In file tasks, an invalid
#MISE cache=...header is now an error. Previously mise warned and dropped the wholecachevalue. A#MISEheader line with a key and no value, such as#MISE deny_net=, is also now an error. Previously mise skipped it silently, so the task ran without that restriction. #16043 (@jdx)
Performance
- Every command does less redundant work. mise makes fewer filesystem checks, does much less memory copying, reads environment variables far less often and parses lockfile entries more cheaply. In a 29-tool project,
mise hook-envmakes about 13% fewer system calls. The environment-variable lookups per command drop from about 2,800 to about 500, which matters most in shells that export many variables. Behavior does not change. #16044, #16050, #16051, #16052 (@jdx)
Documentation
- The security docs now include a threat model. It covers what mise trusts and where config trust, artifact verification and optional command sandboxing each stop. #16046 (@jdx)
SECURITY.mdnow lists what a vulnerability report should include. The contributing guide sends security findings from source review to the private reporting channel. #16045 (@jdx)
Full Changelog: v2026.11.13...v2026.11.14
💚 Sponsor mise
mise is built and maintained by @jdx, an open source developer at entire.io, the title sponsor of his open source work.
If mise saves you or your team time, please consider becoming an individual or company sponsor. Your support funds ongoing development and helps keep mise fast, free, and independent.