jdx/mise · critical
content-level SLSA verification rejected unsafe archive path
Error message
content-level SLSA verification rejected unsafe archive path: {} What it means
While normalizing archive entry paths for content-level SLSA verification, mise splits each path into components and rejects any entry containing `..`, an absolute/root component, or a Windows prefix. This prevents an archive from writing outside its install directory (zip-slip / tar-slip attack) during verification or extraction.
Solutions
- Do not use the artifact; treat it as untrusted — verify its provenance/checksum independently
- Download a fresh official release from upstream in case the local copy was tampered with or corrupted
- Report the malicious/tainted archive to the upstream project if it ships traversal paths
- Ensure you are fetching from the URL pinned in the signed manifest rather than a mirror
Defensive patterns
Strategy: validation
Validate before calling
tar -tf tool.tar.gz | grep -E '(^/|(^|/)\.\./)' && echo UNSAFE || echo OK
Prevention
- Never install archives from unverified mirrors; rely on SLSA/checksummed sources
- Treat any path-traversal error as a security signal, not a config bug
- Report upstream archives that ship absolute or `..` paths
When it happens
Trigger: Content-level SLSA verification encounters an archive entry whose path contains a parent-directory component (`../`), starts with `/`, or carries a drive/UNC prefix.
Common situations: A malicious or tampered release artifact attempting path traversal; archives built with absolute paths; corrupted archives; running mise on a platform where a prefix component appears in archive paths.
Understand the failure class
Background: Path traversal blocked: "path escapes the workspace" and "outside site root" errors when a path will not stay inside its allowed directory — this error's family across 26 libraries.
Related errors
- vfox plugin archive contains an unsafe path
- brew-cask: app target
- brew-cask: binary target
- brew-cask: completion target
- brew-cask: completion target
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/d199f57a53421afb.
Report an issue: GitHub.
Appendix: source
Thrown at src/file.rs:2769
bail!(
"content-level SLSA verification found duplicate installed archive path: {}",
file.name
);
}
}
Ok(files)
}
fn normalize_archive_content_path(path: &Path, strip_components: usize) -> Result<String> {
let mut parts = Vec::new();
for component in skip_curdir_components(path) {
match component {
std::path::Component::Normal(part) => parts.push(part.to_string_lossy().to_string()),
std::path::Component::CurDir => {}
std::path::Component::ParentDir
| std::path::Component::RootDir
| std::path::Component::Prefix(_) => {
bail!(
"content-level SLSA verification rejected unsafe archive path: {}",
path.display()
)
}
}
}
if strip_components > parts.len() {
bail!(
"content-level SLSA verification stripped all components from archive path: {}",
path.display()
);
}
let parts = &parts[strip_components..];
if parts.is_empty() {
bail!(
"content-level SLSA verification stripped all components from archive path: {}",
path.display()
);View on GitHub (pinned to 533346cc37)