Canolean parses Lean files using Lean's own parser (bridge/Frontend.lean).
As documented in Scope and limits, loading Lean imports (including via --lean-path or --lake) runs module initialization code in those compiled .olean libraries.
Canolean is therefore not a sandbox for untrusted Lean code or untrusted .olean artifacts.
The Rust core is dependency-free and built with unsafe_code = "forbid".
If you discover a security vulnerability, please report it privately using GitHub's private vulnerability reporting on this repository rather than opening a public issue.
Please include a minimal reproduction and the output of canolean --version and lean --version.