Skip to content

Security: vstiago/vice

Security

SECURITY.md

Security Policy

Security Architecture & Boundaries

vice executes local compiler toolchains and processes untrusted source repositories. Its core security boundaries are:

  1. No custom compiler executables from repositories: Custom compiler executables and command templates are loaded only from the user-owned compilers.toml (~/.config/vice/compilers.toml on Linux/macOS or %APPDATA%\vice\compilers.toml on Windows) — never from repository .vice.toml.
  2. Explicit workspace trust: Project .vice.toml flags and compile_commands.json entries are ignored unless explicitly approved via :ViceTrust (tracked by canonical file path + SHA-256 content hash; any modification revokes trust).
  3. No shell interpolation: Compilers are always invoked with explicit argv lists (shell=False).
  4. No user code execution: The python-dis bytecode adapter uses stdlib compile() and dis.Bytecode only — it never calls exec() or eval() on user buffers.

Reporting a Vulnerability

If you discover a security issue (such as a workspace-trust bypass, command injection, or unintended code execution), please do not open a public GitHub issue.

Instead, report it privately via GitHub's Security → Advisories → Report a vulnerability page for vstiago/vice, or contact the maintainer directly. Please include:

  • Steps to reproduce or a minimal proof-of-concept
  • Affected OS, editor (Vim/Neovim), and Python version
  • Potential impact

We aim to acknowledge reports promptly and coordinate a fix before public disclosure.

There aren't any published security advisories