CVE-2026-35533: Local settings bypass config trust checks
Summary mise loads trust-control settings from a local project .mise.toml before the trust check runs. An attacker who can place a malicious .mise.toml in a repository can make that same file appear trusted and then reach dangerous directives such as [env] .source, templates, hooks, or tasks. The strongest current variant is trustedconfigpaths = ["/"].
Published Apr 7, 2026 · Updated Jun 12, 2026
Affected packages
mise
- Ecosystem
- Rust (crates.io)
- Affected
- >= 2026.2.18, < 2026.6.4
- Fixed in
- 2026.6.4
- Check
cargo tree -i mise
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
mise loads trust-control settings from a local project .mise.toml before the trust check runs. An attacker who can place a malicious .mise.toml in a repository can make that same file appear trusted and then reach dangerous directives such as [env] _.source, templates, hooks, or tasks.
The strongest current variant is trusted_config_paths = ["/"]. I confirmed on current v2026.3.17 in Docker that this causes an untrusted project config to become trusted during mise hook-env, which then executes an attacker-controlled _.source script. The same preload issue also lets local yes = true / ci = true auto-approve trust prompts on v2026.2.18+, but the primary PoC below uses the stronger trusted_config_paths path.
Details
The vulnerable load order is:
- `Settings::try_get()` preloads local settings files.
- `parse_settings_file()` returns
settings_file.settingswithout checking whether the file is trusted. - `trust_check()` later consults those already-loaded settings.
The main trust-bypass path is in `is_trusted()`:
let settings = Settings::get();
for p in settings.trusted_config_paths() {
if canonicalized_path.starts_with(p) {
add_trusted(canonicalized_path.to_path_buf());
return true;
}
}If a local project file sets:
[settings]
trusted_config_paths = ["/"]then every absolute path matches, so the same untrusted file is marked trusted before the dangerous-directive guard is reached.
Related variant: `trust_check()` auto-accepts explicit trust prompts when Settings::get().yes is true, and `Settings::try_get()` sets yes = true when ci is set. I confirmed that regression on v2026.2.18, but the primary PoC below does not depend on it.
PoC
Test environment:
- Docker
linux-arm64mise v2026.3.17
Negative control:
[env]
_.source = ["./poc.sh"]mise ls fails with:
Config files in /work/poc/.mise.toml are not trusted.and /tmp/mise-proof.txt is not created.
Primary exploit:
[settings]
trusted_config_paths = ["/"]
[env]
_.source = ["./poc.sh"]with:
#!/usr/bin/env bash
echo trusted_paths_hookenv > /tmp/mise-proof.txtThen:
mise hook-env -s bash --forceObserved:
/tmp/mise-proof.txt => trusted_paths_hookenvRelated regression check:
v2026.2.17: localyes = truedoes not bypass trustv2026.2.18: the same localyes = truevalue auto-approves the trust prompt and the side effect file is created
Impact
An attacker who can place a .mise.toml in a repository can make mise trust and evaluate dangerous directives from that same untrusted file.
Demonstrated on current supported versions:
- execution via
[env] _.sourceduringmise hook-env - bypass of the protection that
mise trustis supposed to provide for dangerous config features
On newer versions, the same root cause also lets local yes / ci values auto-approve explicit trust prompts.
Suggested Fix
Do not honor trust-control settings from non-global project config files.
At minimum, ignore these fields when loading local project config:
trusted_config_pathsyesciparanoid
For example:
pub fn parse_settings_file(path: &Path) -> Result<SettingsPartial> {
let raw = file::read_to_string(path)?;
let settings_file: SettingsFile = toml::from_str(&raw)?;
let mut settings = settings_file.settings;
if !config::is_global_config(path) {
settings.yes = None;
settings.ci = None;
settings.trusted_config_paths = None;
settings.paranoid = None;
}
Ok(settings)
}Credited to kq5y.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Rust (crates.io) vulnerabilities
All Rust (crates.io) entriesCVE-2026-103929
mise permits untrusted local configuration to override default shell arguments
high7.8Oct 15, 2026CVE-2026-54557
mise HTTP backend uses raw version path for install symlink destination
medium5.5Jun 23, 2026CVE-2026-55441
Mise vulnerable to arbitrary command execution via task-include files in an untrusted, config-less repository
high8.6Jun 23, 2026CVE-2026-55448
Mise's local credential_command executes untrusted config
medium6.3Jun 23, 2026CVE-2026-33646
Mise Vulnerable to Arbitrary Code Execution via Tera Templates in .tool-versions Files (Trust Bypass)
critical9.6Jun 22, 2026
