Security overview
Each mise security control covers one stage, from loading a project's config to running the commands it starts. The one you meet first is configuration trust, which controls when a repository's config can run code.
What mise protects against
| Risk | Control | Default |
|---|---|---|
| A repository's config runs code when you enter it or run mise there | Configuration trust | On |
| Automation has to read config that someone else wrote | Safe mode | Off; set MISE_SAFE=1 |
| A trusted config changes after you reviewed it | Paranoid mode | Off |
| A download was tampered with or replaced | Download verification | On, where the backend and the upstream project support it |
| A newly published release is malicious | Minimum release age | 24 hours for every backend |
| A task or command reads, writes or reaches more than it needs | Sandboxing | Off; Linux and macOS only |
| A secret ends up in your shell, a log or a process that does not need it | Secrets | Opt in |
Threat model
Project configuration. mise assumes you or your administrator control global and system config. Configuration trust limits what project config can do without your approval. Treat trusting a project as trusting its code: trusted config can run commands as you. Some commands imply trust, and CI trusts project config by default. Use safe mode when automation only needs to read project config you have not reviewed.
Tools and plugins. Choose tools, packages, and asdf or vfox plugins from sources you trust. Plugins and install scripts can run with your permissions during installation, before you ever run the tool. Download verification checks the artifact against the evidence available from the backend and upstream publisher. It does not tell you whether that publisher or its software is safe.
Running commands. mise runs as your user. Optional sandboxing limits supported operations of the commands you run with it. It does not sandbox mise while it evaluates config, installs tools, or runs hooks. Run untrusted projects or tools in an isolated environment without access to your usual files or credentials.
Resource exhaustion. Input that mise reads before you trust it, or that comes from the network, must not make mise hang, crash, or use unbounded memory, disk or CPU. A report that such input does is a security bug. This covers:
- project config,
.tool-versionsandmise.lockyou have not trusted, and any.miserc.toml, which never needs trust, including whatmise activatereads when youcdinto a repository you just cloned - anything mise reads in safe mode
- remote metadata, such as version lists, release APIs, checksum lists, registry templates and OAuth responses
- downloaded archives, such as decompression bombs or archives with too many entries, even when download verification passes
Trusted config and the tools and tasks it runs are out of scope. Trusted config can already run commands as you, so a trusted config that loops or allocates a lot is a bug, not a vulnerability. The same goes for a tool you chose to install that is large.
- project config,
Configuration trust
Project config can run code. Templates can call exec(), hooks and [env] directives run commands or change variables such as PATH, and tool options such as postinstall run scripts. mise loads a config that can do any of this only after it is trusted.
What needs trust
A mise.toml loads without trust when it has no template syntax ({{, {% or {#) and contains only:
min_version[tools]entries whose values are version strings or arrays of version strings, with no options in the tool name ("tool[opt=value]"), nospm:name that is the URL of a host other than github.com or gitlab.com, which mise would send your forge token to, nonpm:tarball URL,npm:Git URL orpypi:Git URL that is fetched overhttp(s)from a host other than github.com, gitlab.com or bitbucket.org, which mise or git would send your~/.netrcand Git credential-helper logins to, and nopath:version, which puts a directory onPATHwithout an install, and noref:orrev:version, which can name any commit the forge serves, such as a pull request from a fork (tag:andbranch:versions load without trust)[tasks], as long as no task listssecrets
Anything else needs trust, including tool option tables, [env], [hooks], [settings], [tool_alias] and include. mise ignores the [settings] of a config that is not trusted, so a repository cannot change mirrors, build commands or other settings before you trust it. Other files follow the same idea:
.tool-versionsneeds trust only when it contains template syntax, inline tool options such asnode[postinstall=...] 24, one of the tool names above that needs trust, or apath:,ref:orrev:version.- Idiomatic version files such as
.nvmrcneed trust only when they contain apath:,ref:orrev:version. - A project's
mise.lockis read with its config. Until that config is trusted, the lockfile only pins versions and checksums: mise ignores an entry that locks a tool to a backend other than the one its tool key or the registry selects, that adds options, or that locks aref:orrev:version, and downloads from where the backend normally would instead of the lockfile's URLs and dependency graphs. - Task files, including TOML files from
task_config.includes, need trust only when they contain template syntax or listsecrets.mise lockstill asks for trust before it resolves a task's tools that carry options, as it would for a tool option table. - A tool stub needs no trust to run, since running it is your approval.
mise lockalso reads the stubs thatmise.locklists undertool-stubs, andmise generate tool-stub --lockreads the stub it locks, and for that the project's config needs trust. In safe mode neither applies the options of those stubs. - A
.miserc.tomlnever needs trust. It only holds early settings that choose which config files load, and mise finds it by walking up from the current directory. A project'senvlist can add environments but cannot drop or reorder one that a global or systemmiserc.tomlselects. The project's own environments come after the global ones and override them, so a global environment protects only settings that project config cannot set, such asparanoid. The environments a project adds or turns on select only project files, never a global or systemconfig.<env>.toml. The other keys a project file can set change which project files load and how far up mise looks for them; they cannot hide global or system config. A project'signored_config_pathsadds to the list it inherits and cannot remove an entry, so a project under an ignored path stays ignored. Its environment names may use only letters, digits,_,-and., so they cannot carry shell or template syntax into a trusted config that uses. Its override filenames must be file names ending in.tomlortool-versions, so they cannot make mise read a file such as~/.netrcas config. Global and systemconf.dfragments follow only the global and systemenv_conf_d. Templates in a project.miserc.tomlsee no environment variables and may use onlyifstatements and a short list of functions and filters, so they cannot leak your environment or hang mise; see templates in .miserc.toml.
Tasks that load without trust run nothing until you run one. Shell completion of their arguments leaves out the commands a usage spec can name, complete run=, complete delegate=, choices run= and mount, until the project is trusted. It leaves out choices env= as well, which would offer the value of an environment variable the task names.
Paranoid mode removes these exemptions apart from .miserc.toml: every other config file outside global and system config needs trust.
When mise asks
When a command needs a config that is not trusted:
- A command you type in a terminal trusts the config's directory without asking, records it as
mise trustwould, and saysmise trusted <dir> because you ran a mise command there. Undo with `mise untrust <file>`.See Typed in a terminal for what counts. - Otherwise, when stdin and stderr are a terminal, mise asks
mise config files in <dir> are not trusted. Trust them?with Yes, No and All, where All answers yes to every prompt in that command. No adds the directory to an ignore list, and mise skips that config without asking again until you runmise truston it. - Without a terminal, such as in a script or an editor extension, mise cannot ask, so the command fails with
Config files in <path> are not trusted. - Shell completion never asks. When a config it reads needs trust, completion fails as a command without a terminal does, so it completes no task names until you trust the config. A config that loads without trust, such as one that holds only
[tasks], still has its task names completed, but the commands in those tasks' usage specs do not run. - The shell's command-not-found handler never asks and says nothing about it. It leaves the untrusted config out, so only trusted config, such as global config, decides what it auto-installs.
- Shell activation never asks. It skips the untrusted config, warns
<path> is not trusted, run mise trust to enable it, and still applies the trusted ones. - Commands that read every tracked config, such as
mise prune, skip untrusted ones.
mise trust --show lists the trust status of the config directories from the current directory up. A config that needs no trust still shows as untrusted.
Implicit trust
Some commands trust the config they load without asking, because running them is already a decision to run the project's code. In normal mode outside CI, these are mise run, the mise <task> shorthand, mise install, mise exec, mise watch, and mise daemons start, restart and register. They record trust for every non-global config they load, including configs in parent directories, as if you had run mise trust. A config on the ignore list stays ignored. Asking one of these commands for its own help, as in mise run --help, records nothing. Neither does a command mise starts on your behalf: the mise x a shim runs for a tool, the mise run of a task hook or a watch_files task, a task the MCP server runs, or the run that mise run --at starts at another revision.
mise also trusts a config file when it writes one, for example with mise use or mise set. That trust covers the file's whole config root, so if another config file there is not trusted yet, such as a mise.local.toml or a mise.staging.toml, mise asks about it first, the way it does when that file loads. In safe mode a write records no trust, and neither does a write to global or system config, which is trusted without a record: writing ~/.config/mise/config.toml does not trust a mise.toml in your home directory, and does not undo mise trust --ignore for it.
When a project config file is a symlink, or sits in a linked directory of the project such as a .config or .mise that leads out of it, mise writes through the link only if it stays in the config's directory, or the project was trusted before the command started and safe mode is off. Trust that the same command grants does not count, however it grants it: because you typed it in the project (see Typed in a terminal), because you answered yes to the prompt, or because --yes or MISE_YES is set. The prompt names the directory, not where its links lead. Otherwise the write fails and names the link and its target. Outside safe mode it tells you to run mise trust there and run the command again. In safe mode trust does not help, so it tells you to write the file the link leads to directly, or to replace the link. A link into mise's state directory, a dangling link that leads out of the directory, and a project's link to global config are never followed, trusted or not; write global config with -g. A global config file that links into a dotfiles checkout is written through.
Typed in a terminal
Outside the commands that imply trust, typing any other mise command, such as mise ls or mise env, in an untrusted project trusts that project without the prompt when all of these hold:
- stdin, stdout and stderr are all a terminal. A command whose output is captured, such as
$(mise env)in a prompt oreval "$(mise env)"in a shell startup file, still asks. - Paranoid mode's
configcategory is off. - mise is not running as a shim, as the
mise xa shim runs, as a tool stub, for shell completion, or for the shell's command-not-found handler after you mistype a command. Running a tool that a shim or stub provides is not a mise command. - On Unix systems such as Linux and macOS, you own the config file and its directory, every other config file the trust would cover in that directory, including ones for another
MISE_ENVsuch asmise.prod.toml, each directory between that directory and those files, and the target of each one that is a symlink. A config file another account left in a shared directory, such as a.config/mise.tomlbeside your ownmise.toml, still asks. So does a symlink whose target, or a link it passes through on the way, sits below a directory that neither you nor root owns, or that another account can write to and that is not sticky like/tmp: that account could replace the target or repoint the link after the trust is recorded. Windows does not check ownership.
mise cannot tell a command you typed from one a program started on the same terminal, so a mise command run from a script or a Makefile target you start there, with stdin, stdout and stderr all still the terminal, trusts the project too. Paranoid mode's config category turns this off.
mise trusts the config's directory as mise trust would and prints mise trusted <dir> because you ran a mise command there. Undo with `mise untrust <file>`. once per directory, which --quiet hides. <file> is the config file whose directory was trusted; mise untrust without it acts on the nearest config only. mise quotes <file> for the shell mise activate set up. Without activation it cannot tell which shell you typed in, so it shows <file> only when the path needs no quoting, and otherwise prints the path and asks you to quote it for your shell. When the project's settings then fail to load, mise removes the record again and fails with the settings error, since every later command, mise untrust too, would fail on that setting. A directory on the ignore list or under ignored_config_paths stays ignored, and shell activation still skips untrusted config. Only paranoid mode turns this off.
The same holds for a project whose config loads without trust, such as a [tasks]-only mise.toml, when the command needs a task's trust: typing mise tasks info <task> there trusts the project and reads the files the task's usage spec includes, where a script or editor running it does not.
CI and --yes
When mise detects CI, for example because CI is set, it treats every config as trusted and records nothing. Configs on the ignore list or under ignored_config_paths still do not load. CI also turns on yes.
Outside CI, --yes or MISE_YES=1 answers the trust prompt with yes, which records trust. That applies to a command you entered: shell activation, shell completion and the shell's command-not-found handler run mise unasked, so they neither ask nor take --yes or MISE_YES=1 for an answer. Paranoid mode turns off both the CI exemption and --yes for trust.
Manage trust
mise trust --show # trust status from here up
mise trust # trust the nearest untrusted config
mise trust path/to/mise.toml # trust a reviewed file
mise trust --all # trust configs here, above and below
mise trust --untrust # remove trust
mise trust --ignore # never load this configIn normal mode, trust belongs to a config root, usually the directory that holds mise.toml, so it covers every config file there, such as mise.local.toml or .mise/config.toml. That includes a mise/, .mise/ or .config/ directory that is a git repository of its own, such as a tracked ~/code/.config. mise trust --all walks subdirectories, skipping hidden and gitignored ones and node_modules, vendor, target, dist and build. Trust records are kept in the state directory. See mise trust for every flag.
A conf.d folder and .config/mise are config roots of their own inside a project. mise trust --untrust and mise trust --ignore with a directory or no path act on the project and on every such root in it, and an ignored project's nested roots stay ignored, including ones added later. Name a file to act on that file's root alone, so mise untrust mise.toml leaves a nested root you trusted on its own trusted.
A config that mise reaches through a symlink inside a project, such as a linked mise.toml, a linked conf.d folder or a linked .mise or .config directory, belongs to that project: it is trusted when the project is, and trust in the file or directory the link leads to does not count. mise trust in the project trusts it. Paranoid mode approves a file by its content and refuses such a config with an error; replace the link with a copy, or add the project to trusted_config_paths. Links in global config are yours and are not affected.
Trust by path
Two settings decide trust by location:
trusted_config_pathstrusts configs under these paths without a prompt, including projects you create there later. It overrides the ignore list, and["/"]trusts everything. It is global-only.ignored_config_pathsstops configs under these paths from loading. It overridestrusted_config_pathsandmise trust. mise reads it before it looks for config files, so set it in a.miserc.tomlor inMISE_IGNORED_CONFIG_PATHS. A project's.miserc.tomlcannot ignore global or system config, and it can add entries but cannot remove one set in a global or systemmiserc.tomlor in a parent directory.
# ~/.config/mise/config.toml
[settings]
trusted_config_paths = ["~/src/work"]Monorepo roots
In normal mode, trusting a config with monorepo_root = true also trusts every config file below its directory, so review the subprojects' config as part of the repository. They stay trusted only while the root is: after mise trust --ignore on the root, or once a trusted_config_paths entry that covered it is gone, they need trust of their own again. See Monorepo tasks. A subproject you ignore with mise trust --ignore stays ignored under a trusted root: mise does not load its config or list its tasks, and a command that trusts the root does not remove the ignore. In paranoid mode, trusting the root trusts only that file.
A command typed in a terminal in an untrusted monorepo root, or in a subproject below it, trusts the root the same way, so the trust covers every subproject config below it, including ones added later. The ownership check looks only at the root's own config files, not at the subprojects'. On a shared checkout, this means anyone who can write to the tree can add a subproject config that the root's trust covers, and it loads without asking.
Leaving the root untrusted does not prevent this. Even after mise trust in a subproject, the next command you type there trusts the untrusted root above it and prints the notice. To keep the root out, run mise trust --ignore on the root's config, then run mise trust with the path to each subproject config you want to approve, such as mise trust app/mise.toml. Without a path, mise trust picks the nearest untrusted config, which can be the ignored root once the subproject is trusted. Alternatively, enable paranoid mode's config category. Typed commands then ask again, and trusting the root trusts only that file.
Git worktrees
A config in a linked git worktree is trusted when the same path in the main checkout is trusted. mise trust --untrust in the worktree warns that the file stays trusted for that reason; use mise trust --ignore there to stop it loading. Paranoid mode does not share trust between worktrees.
The repository has to list the worktree at its current location: a .git file that only names one of the repository's worktrees shares nothing. After moving a worktree by hand, run git worktree repair. A path in the main checkout that is a symlink, or sits below one, shares nothing either; trust the worktree's config directly instead.
To trust a config in every checkout of a repository, run mise trust --worktrees in any of them. This is how worktrees of a bare repository, which have no main checkout, share trust. It covers the same path in the main checkout and in every linked worktree, including worktrees created later, and nothing else: a config at another path in a worktree still needs its own trust.
git -C ~/src/app.git worktree add ~/work/feature-x
cd ~/work/feature-x
mise trust --worktreesThe grant is kept in mise's trust store, keyed by the repository's git directory, not in the repository, so a copy of the repository does not carry it. mise trust --untrust --worktrees removes it, and mise trust --ignore in one worktree still stops the config loading there. Paranoid mode refuses --worktrees.
Safe mode
Set MISE_SAFE=1 when automation has to read config it does not control, such as a bot that resolves tool versions on pull request branches. Safe mode loads project config without asking for trust, because it stops that config from running code or changing the environment while mise resolves versions:
MISE_SAFE=1 mise lock --bump --dry-run --jsonRemove --dry-run to update the lockfile. Safe mode does not make a command read-only. The safe setting is global-only, so a project cannot turn it off for itself.
Safe mode is meant for resolution and metadata commands such as mise lock, mise ls, mise env and mise outdated.
WARNING
Safe mode does not make other commands safe to run on config you have not reviewed. mise install can build a tool from source, which runs the tool's build scripts, such as a cargo: crate's build.rs.
Refused operations
These fail with <operation> is disabled in safe mode (MISE_SAFE=1):
exec(),read_file(),read_json(),read_yaml(),read_toml()andget_env()in templates, thehash_file,file_size,last_modifiedandcanonicalizefilters, and thedir,fileandexiststests, in any config.- Running tasks.
- The tool options
postinstallandinstall_env, and thespm:backend'sinstall_command.mise lockdoes not run uv for apypi:tool that setsinstall_env, so it warns and locks that tool's version without a dependency graph. - The
http:backend'sversion_expr,version_date_expr,version_date_next_exprandchecksum_expr, for a tool that project config or a project task declares, since nothing limits the memory or time an expression takes. The expressions the registry sets for a tool still run, and so do those of a tool that only global or system config declares. - asdf plugin scripts, so tools from the
asdf:backend cannot list or install versions. - Requests to S3, which are signed with your AWS credentials, so tools from the
s3:backend cannot list or install versions. - Reading the local file that the
file://urlof anhttp:tool names, so such a tool cannot be installed or locked, unless global or system config requests the tool and no project config declares it. The checksum thatmise lockrecords would otherwise tell what a file outside the project holds. - Fetching a tool whose name is an
npm:tarball URL, or annpm:orpypi:Git URL overhttp(s), on a host other than github.com, gitlab.com or bitbucket.org, unless global or system config requests the tool and no project config declares it. mise or Git would send your~/.netrcand Git credential-helper logins for that host. - Installing plugins. vfox plugins that are already installed or built in still run, because the operator chose them.
- mise secrets:
[secrets]sources,mise secrets ls, tasks that listsecrets, and--secretsand--secrets-allonmise runandmise exec. mise daemonscommands and task daemons.- The diagnostic commands in
[doctor.checks]thatmise doctor projectruns.
Ignored configuration
These are skipped without an error, so resolution commands keep working:
- Hooks and
[[watch_files]]entries from every config, including global config, and bootstrap hooks, as with--no-hooks. - Project
[env],[vars]and environment directives such as_.pathand_.file. - Project
path:tool versions, and project[tool_alias]versions that point to one. - The environment of the process that runs mise, in templates:
envis empty in templates outside global and system config files, so a repository cannot put your credentials into a URL mise requests, intomise.lockor into command output.varsis empty there too, since what is left of it in safe mode is yours: global and system[vars]and answers saved withmise vars. A template that reads a variable without adefaultfails, as it does when the variable is unset. This covers a project's.miserc.tomltoo. The options of a tool from global or system config, including a global[tool_alias], the tasks and dotfiles global or system config declares, and the file tasks in the global or systemtasksdirectory keepenvandvars. A task thatextendsa template does not. _.sourcein every config, including global config.- Env files that mise finds by searching: the files a relative
env_filename matches in the working directory or a parent, and the files a global_.fileentry withfind_up = trueor a glob finds. This includes files outside a repository, such as~/.env, and files you trusted. An absoluteenv_fileentry or a global_.fileentry that names one file still loads. With paranoid mode'senv_filescategory on, only the absoluteenv_fileentry needs approval. - Project
[shell_alias]. - The commands in a project task's usage spec that shell completion would run, and its
choices env=, which completion would read from your environment. - Project
[wrappers]and therusttool'smr_boxingtonoption. - The options of a vfox tool that project config declares, in the plugin's environment hooks, and the current directory: those hooks run their commands in your home directory, so the
pipenvandpoetryplugins activate no virtualenv. Outside safe mode the same holds in a directory you have not trusted. See the hook environment. - Your credentials, for hosts project config chooses: a project
api_urlgets no GitHub, GitLab or Forgejo token, unless global config names the same scheme, host and port, or it is that forge's own public API over https (github.comandapi.github.comfor GitHub,gitlab.comfor GitLab,codeberg.orgfor Forgejo). A tool that project config declares gets no~/.netrccredentials: not for the hosts itsurl,checksum_url,version_list_url,version_date_urlorapi_urlnames, and not for the hosts their answers send it on to, such as the asset link of a release. That includes a monorepo subproject's tools and a task'stools. Only tools that global or system config declares or aliases, and no project requests, keep theirs and keepenvin their templates, as do thetoolsof a global task, including one from a task file that global config includes from anywhere; a tool named only on the command line, in a tool stub or byMISE_<TOOL>_VERSIONdoes not. A project that points at a private forge or file server therefore cannot list or download versions there. A request that one of your URL replacements sends to another host is the exception: you chose that host, so a project tool keeps the~/.netrclogin for your mirror, unless the project names the mirror's host itself. The GitHub token that mise otherwise adds to any request for a GitHub API orraw.githubusercontent.comURL is withheld from the hosts a project tool's URL options name too, so a project URL cannot read a private repository's files with it. Theheadersof anhttp:tool in a global[tool_alias]go with the options written beside them: a project entry for that tool which sets an option of its own, such asversion_list_url, gets none of them. - A project
[tool_alias]for a tool that global config declares, so a repository cannot point your tool at another backend, options or versions. - Project lazy tools: mise writes no shims for their commands and does not install them on first use.
- Project
[settings], so a repository cannot turn off verification or redirect a backend. - The
packslip:backend'strust = "vendor"option, unless a[tools]entry of global or system config sets it for the same tool, so a repository cannot exempt a release from thepackslip.stampersyou require. This applies to a tool named on the command line too. - Remote
includeentries in project config, which mise does not fetch. - Remote task files (
file = "https://…"orgit::…) in project config. Their tasks are listed from their TOML alone. - Remote
task_config.includesentries (git::…,oci::…orzip::…) in project config, which mise does not fetch. The tasks they hold are not listed. - Project task files that resolve outside the project, whether named by
~, an absolute path or.., or reached through a link. mise warns about each one. Task files elsewhere in the same git checkout or monorepo still load. After skipping either kind of task file,mise lockremoves no tool or version frommise.lock, since it cannot tell which ones those tasks use. - Project
[deps], somise depsandmise execdo not run a repository's dependency providers. Providers in global and system config still run. - Project
[oci], so a repository cannot havemise ocicopy files from the build host into the image with[[oci.copy]], or pull a base image with your registry credentials.mise ocinames the skipped files.--from,--copyand, with--include-global, the[oci]in global config still apply. - Project daemon declarations. Daemons also do not start or stop when you change directories.
- Project
[bootstrap],[dotfiles]and[dotfile_groups], and the[bootstrap] config_rootsa project selects, because applying them writes files into your home directory, clones repositories and installs packages.mise bootstrapandmise dotfilesname the skipped files, still apply the ones in global and system config, and refusemise dotfiles apply --prunewhile a project declares dotfiles they ignore.
Global and system config still applies, apart from these rules. Review it and the environment of the process that runs mise.
What still works
Version resolution keeps working for backends that query HTTP APIs, such as core tools, aqua:, github:, gitlab:, http:, cargo:, pypi:, gem:, dotnet: and npm:. The go: backend runs go list with GOTOOLCHAIN=local, so a project's go.mod cannot make Go download another toolchain. Listing installed tools and refreshing mise.lock work as usual, except that a project's mise.lock is not written through a symlink that leaves its directory.
Safe mode loads untrusted config without a prompt or an error, in paranoid mode too. It does not mark the config trusted for later runs without safe mode, not even when a command such as mise use or mise set edits it. A tool option that mise use writes to another config file, such as global config with -g, is written as its value and not as the template a project declares for it. Syntax errors and refused operations still fail.
Safe mode limits what project config can do. It is not an operating-system sandbox for mise, its network requests or the plugins the operator installed. Use sandboxing to restrict the commands mise starts.
Download verification
What mise checks depends on the backend and on what the upstream project publishes. A checksum shows that the bytes match an expected digest. A signature or provenance check also ties the artifact to a signer or a build. The expected checksum, key or identity has to come from a source you trust.
To see which checks apply to a tool, run mise tool and read the Security line:
mise tool jq
# Security: checksum (sha256), github_attestations| Backend or tool | Checks | Settings and options |
|---|---|---|
aqua: | Checksums, Cosign and Minisign signatures, SLSA provenance and GitHub artifact attestations, as the aqua registry declares them for the tool | aqua.cosign, aqua.minisign, aqua.slsa, aqua.github_attestations |
github: | GitHub artifact attestations when a github.com release publishes them; SLSA provenance when the tool names its signer | github.github_attestations, github.slsa, and the github_attestations and slsa_signer_identity tool options |
packslip: | A signed release manifest, artifact digests and a pinned signer; see verification and policy | Tool options |
| Node.js | Checksums from SHASUMS256.txt and its OpenPGP signature, which must be present except on unofficial-builds | node.verify, node.gpg_verify |
npm: | Sigstore provenance of the tool's own package, when it publishes one; only with the embedded aube package manager, and not for an unlocked install from a downloaded archive (details) | npm.provenance |
| Go, Deno and Bun | The SHA-256 checksum published with each release | go.skip_checksum, for Go |
| Swift on Linux | OpenPGP signatures | swift.gpg_verify |
| Zig | Minisign signatures, always | None |
| Precompiled Ruby and Python | GitHub artifact attestations | ruby.github_attestations, python.github_attestations |
These checks are on by default. Setting the global github_attestations or slsa setting to false turns that check off for the aqua: and github: backends. For precompiled Python and Ruby, github_attestations is only the default, and an explicit python.github_attestations or ruby.github_attestations overrides it.
mise verifies OpenPGP, Cosign, Minisign, SLSA and attestations itself, so it needs no gpg, cosign or gh executable. If a check fails, read the underlying error before you turn a setting off; see checksum errors.
A lockfile records checksums and the provenance mise verified, and later installs reuse that result instead of checking again. Set locked_verify_provenance or turn on paranoid mode to re-verify on every install. Neither re-checks a tool that is already installed. The npm: provenance check is not reused from the lockfile: where the table above says it applies, it runs each time mise installs the tool. The lockfile records the repository the provenance names, and a later install of that version must show the same repository; see npm provenance.
mise checks its own releases too: mise self-update verifies each release's signature before it replaces the binary. See self-update verification for the checks and Updating mise for the commands.
Minimum release age
mise skips versions published more recently than a cutoff when it picks a version for a request such as node@24 or latest. The default cutoff is 24 hours. The delay gives the community time to notice a compromised release; it does not make an older release trustworthy.
[settings]
minimum_release_age = "7d" # raise the default 24h delay to 7 daysminimum_release_age accepts relative durations (7d, 6mo, 1y) and dates (2024-06-01, 2024-06-01T12:00:00Z). Set 0s to turn the delay off.
What each backend can hold back
Without a configured value, mise applies the 24-hour default to every backend. Use minimum_release_age_excludes to leave a tool or backend out.
A backend can filter only versions it knows a release date for:
| Capability | Backends |
|---|---|
| Filter the tool's own versions | Backends that report release dates, such as aqua:, cargo:, github:, gitlab:, go:, npm:, pypi: and most core tools |
| Filter dependencies resolved during installation | conda:, npm: and pypi: (pipx: is an alias) |
Versions without a release date are not filtered. When mise installs one it warns that the cutoff could not be checked, so you know that version was not held back. Switch to a backend that reports dates, or exclude the tool to silence the warning.
A version that comes from a git tag rather than a release, such as an aqua: package with the github_tag version source, is dated by the committer date of the tagged commit. Whoever pushes the tag sets that date, so a new tag on a backdated commit passes the cutoff at once. To avoid picking up a new tag automatically, review a version first, then pin it exactly or record it in mise.lock.
Backends other than conda:, npm: and pypi: can hold back the tool's own version, but not the dependencies its installer or compiler fetches. See the npm and PyPI backend pages for how they pass the cutoff to their package managers. conda: solves the environment without the packages released after the cutoff, so a new build of an older version of the tool or of a dependency is held back too. A package's release date is when the channel indexed it, or, when the channel does not record that, the build time its builder recorded. A package with neither is kept.
What the cutoff applies to
The cutoff applies when mise has to choose a version, for a prefix such as node@24 or for latest. These are not filtered:
- An exact version such as
node@24.0.0.conda:is the exception: an exact version names no build, so its solve still leaves out builds and dependencies released after the cutoff, and fails when nothing older solves. - A version recorded in
mise.lock, so a reviewed selection stays reproducible while the release is inside the window.npm:andpypi:still apply the cutoff to transitive dependencies that the lockfile does not record. - An installed version that matches the request. The cutoff limits which new versions mise downloads; it does not deactivate one you have.
mise lockwith a configured cutoff, rather than the default, re-checks installed matches.
Two release tags can spell one version, such as 2.0.0 and v2.0.0. For github:, gitlab: and forgejo: tools, a version the cutoff chose is installed from a release of it that is older than the cutoff. If the only release mise finds for it is newer, the install fails instead.
For packslip: tools, mise compares the cutoff with the release's verified transparency-log time; see packslip verification. The installer script and mise self-update apply their own delay to mise releases; see Installer options and Updating mise.
Per-tool cutoffs and exclusions
Set minimum_release_age as a tool option to override the global value for one tool:
[settings]
minimum_release_age = "7d"
[tools.trivy]
version = "latest"
minimum_release_age = "1d" # security scanner updates are time-sensitiveThe --minimum-release-age flag on commands such as mise install, mise use, mise upgrade and mise lock overrides both. The order is: the flag, then the tool option, then the setting or the built-in default.
To take one newer release before it passes the cutoff, run the command with 0s for just that tool, for example mise upgrade --minimum-release-age 0s gh. The flag applies to that command only. A version you install this way is not downgraded by a later mise upgrade that resolves to an older release.
To exempt tools from the setting and the default, list them in minimum_release_age_excludes:
[settings]
minimum_release_age = "7d"
minimum_release_age_excludes = ["trivy", "npm:*"]An entry can be a backend wildcard (npm:*), a tool short name (trivy) or a full backend ID (npm:prettier). A tool option or the flag still applies to an excluded tool. Exclusions from several config files are merged, so a project can add to the global list without repeating it.
Secrets
Keep secret values out of mise.toml and out of your shell where you can. mise secrets (experimental) fetch values from a secret manager and pass them only to the tasks that list them. sops and age values are decrypted into the environment like any other [env] value. See Secrets to choose an approach, and redaction to mask values in task output and CI logs.
A config whose tasks list secrets always needs trust, and safe mode refuses mise secrets. The environment cache never stores an environment that includes age values, sops files or redacted values.
Reporting a vulnerability
Report vulnerabilities privately by email, as described in SECURITY.md, not in a public issue or discussion. SECURITY.md also has a PGP key for encrypting the report. Fixes go into the latest release only.