We take the security of VT Code seriously. If you discover a security vulnerability, we appreciate your responsible disclosure and will work to address it promptly.
Please do not report security vulnerabilities through public GitHub issues.
Instead, please use GitHub Private Vulnerability Reporting to report vulnerabilities securely and privately.
When reporting a security vulnerability, please provide us with the following information:
- A brief description of the vulnerability and its potential impact
- Steps to reproduce the issue (POC code is appreciated)
- Affected versions (if known)
- Any possible mitigations you've identified
- Acknowledgment: We will acknowledge your report within 48 hours
- Updates: We will provide regular updates on the status of the vulnerability and fix progress
- Resolution: We will work to fix the vulnerability as quickly as possible and coordinate the release of the fix with you
- Credit: We will publicly acknowledge your responsible disclosure (unless you prefer to remain anonymous)
- Never commit API keys, tokens, or other sensitive credentials to version control
- Use environment variables for storing API keys instead of hardcoding them
- Consider using
.envfiles with proper gitignore configuration - Rotate your API keys regularly
- Keep your
vtcode.tomlconfiguration file secure and avoid sharing sensitive values - Regularly review your tool policies to ensure only necessary operations are allowed
- Use secure connections when integrating with external services
- Only run VT Code in trusted environments
- Be cautious when executing code or commands suggested by the AI agent
- Regularly update VT Code to the latest version to ensure you have the latest security patches
| Version | Supported |
|---|---|
| 0.133.x | Latest |
| 0.132.x | Critical fixes only |
| < 0.132 | No longer supported |
VT Code includes several built-in security features:
- Path Validation: Prevents file system access outside the designated workspace
- Tool Policies: Configurable allow/deny/prompt policies for different operations
- Shell approval hardening: Learned read-only command families and command preflight reject dynamic shell syntax in
findcommands, so expansion cannot turn a reviewed shape into-execor another destructive option - Workspace lifecycle hook approval: Shell commands defined in workspace-controlled configuration (
vtcode.toml/.vtcodein the repository) never run at session start or during lifecycle events until you explicitly approve the exact command set for that workspace; any change to those commands invalidates the approval and is skipped until reviewed - PII Protection: Automatic tokenization of sensitive data in code execution
- Token Management: Secure handling of API keys and authentication tokens
VT Code enforces the following CI/CD security controls for GitHub Actions:
- Forbidden trigger policy:
pull_request_targetandworkflow_runare blocked by policy checks. - Immutable action pinning via lockfile: workflows reference actions by symbolic tag/branch
(
.github/workflows/actions.lock), and the lockfile pins each ref to a verified 40-character commit SHA. An action ref without a lockfile entry is rejected. See action lockfiles. - Lockfile verification in CI:
verify-lockfile.ymlrunsgh actions-lock --verifyto fail when the lockfile is stale, incomplete, or a pin no longer verifies upstream. Dependabot updates workflow refs and the lockfile together, with a 7-day cooldown for fresh releases. - Workflow policy check in CI:
scripts/check_workflow_security.shenforces trigger bans and lockfile coverage offline; run it locally via./scripts/check.sh workflow-security. - Least-privilege token permissions: workflows default to
permissions: {}and grant only job-level minimum permissions. - Checkout credential hardening: all
actions/checkoutusage setspersist-credentials: falseunless explicitly required. - Release credential isolation: publishing runs in the dedicated
releasedeployment environment (with reviewer gate), rather than broad repository-level credential exposure. - No release-path cache: release workflows do not use dependency/build cache restore to reduce cache-poisoning exposure on publish paths.
- Container build inputs: the contributor build uses
Cargo.lockand excludes local environment files and credential directories from its Docker build context. The contributor and browser images apply distro package updates at build time. Usedocker build --no-cacheto refresh distro packages when the base digest is unchanged. The browser image uses Bun to install its lockfile and removes the bundled npm toolchain.
For information about VT Code's security architecture, please see our documentation on:
We regularly update dependencies and monitor for security vulnerabilities in our dependencies. CI runs the
cargo-deny policy (deny.toml) when dependency files change and on a
weekly schedule via .github/workflows/deny.yml. It checks RustSec advisories and yanked crates across the release
target graphs, along with license, duplicate, and source policy. To run the same policy locally:
# Install cargo-deny if you haven't already
brew install cargo-deny # or: cargo install cargo-deny --locked
# Audit dependencies against the RustSec Advisory Database
cargo deny --locked check
# House shortcuts
./scripts/check.sh deny # same policy as CI
./scripts/check-dev.sh --deny # opt-in from the fast gateCI also runs cargo audit against the entire Rust lockfile, including optional dependencies outside the checked
graphs. Bun audits the root tooling, WebMCP, and computer-use browser helper lockfiles without installing dependencies.
cargo audit --no-yanked
bun audit
(cd apps/webmcp && bun audit)
(cd crates/codegen/vtcode-computer-use/browser && bun audit)CLI and desktop updates require a verified SHA-256 for the selected archive before installation. Aggregate checksum files must name the archive explicitly. A matching per-archive sidecar may contain a single bare digest. Conflicting digests in one checksum file make that file unusable. Checksum downloads are capped at 64 KiB, and archive hashing streams from the staged file.
Advisories catch known vulnerabilities; cargo-vet records who audited what.
CI enforces cargo vet --locked in .github/workflows/deny.yml using the store in supply-chain/ (Mozilla and
Google audit imports, project exemptions ratcheted down over time). Any new or bumped dependency must be covered by a
trusted audit or a recorded exemption, or the build fails. To work with it locally:
# Install cargo-vet if you haven't already
cargo binstall cargo-vet # or: cargo install cargo-vet --locked
cargo vet --locked # same deterministic check as CI (reuses imports.lock)
cargo vet # refresh upstream audits, then re-check (may update imports.lock)
cargo vet suggest # low-hanging fruit to convert exemptions into real audits
cargo vet certify # record an audit you performed yourselfHouse shortcuts (./scripts/check.sh deny, ./scripts/check-dev.sh --deny) run deny and vet together. Never
hand-edit supply-chain/ — use cargo vet subcommands so the files stay well-formed, and keep the exemptions list
shrinking: every entry there is unaudited code we ship.
First-party workspace crates are trusted (audit-as-crates-io = false): vetting our own code as third-party
forced exact-version self-exemptions that broke on every release, with no downstream signal, since exemptions
never propagate to consumers; only cargo vet certify audits do. If the project starts publishing real audits
of its own releases, re-enable the per-crate policies.
Advisories and audits only see versions that already made it into Cargo.lock. To keep too-new versions out in the
first place, opt in locally to Cargo's dependency cooldowns (Rust 1.100.0,
RFC 3923) by adding the
following to .cargo/config.toml (gitignored in this repo, so each contributor sets this up):
[registry]
global-min-publish-age = "14 days"Cargo then refuses versions published within the last 14 days (the rust-lang repos' own setting), since freshly
published malicious crates are typically revoked within days. --locked builds and CI consume the existing lockfile
without re-resolution, so in-window versions already in the lockfile keep building. cargo publish (and
--dry-run) re-resolves registry deps for the packaged crate, so scripts/publish_extracted_crates.sh exports
CARGO_RESOLVER_INCOMPATIBLE_PUBLISH_AGE=allow for its own invocations — staged sibling releases published
minutes earlier would otherwise be rejected as too new. A manual single-crate retry outside that script needs
the same prefix: CARGO_RESOLVER_INCOMPATIBLE_PUBLISH_AGE=allow cargo publish -p <crate>.
Known limits: cargo install ignores it — and since Rust 1.100, installing a published crate uses
that crate's embedded lockfile anyway, so published artifacts resolve deterministically regardless; it trusts
registry publish-time data; and it is not a complete defense — to adopt a deliberately fresh
version, override for that single update:
CARGO_RESOLVER_INCOMPATIBLE_PUBLISH_AGE=allow cargo update <crate> --precise <version>.
Release artifacts are built with cargo-auditable: the exact
dependency list is embedded into each binary as compressed, inert metadata (.dep-v0 section, no runtime overhead).
Anyone — including us — can scan a downloaded binary for known vulnerabilities without the source tree:
cargo install cargo-audit
cargo audit bin path/to/vtcode # RustSec scan of the binary itselftrivy (v0.31+), grype (v0.83+), and osv-scanner (v2.0.1+) read the same section, so container/distro scanners pick it up automatically. The GNU Linux and macOS release builds embed the data. Two shipped channels currently do not:
- The
cross-built musl/aarch64 artifacts — cargo runs inside the cross container, so a custom image would be required. - Windows MSVC (
x86_64-pc-windows-msvc) — the Windows job is built natively withcargo auditable build, but Rust 1.100's Cargo build-dir layout change drops the injected.dep-v0object during the MSVC link (regression from v0.182.3; no cargo-auditable release fixes it yet). The build stays auditable-enabled so the data returns once upstream is fixed. For these binariescargo audit binfalls back to recovering partial dependency data from panic strings, which is less complete than the embedded graph.
Every release prints a per-artifact coverage report during staging (report_audit_data_coverage in
scripts/release-assets.sh), so a silent regression in the auditable build step shows up in the release log instead
of shipping unnoticed. Known toolchain/cross limitations are labeled as such; any other MISSING is a WARNING.
Embedded metadata records crate names and versions only (URLs/paths are redacted); it is an SBOM, not a supply-chain defense.
For periodic human review of who you are trusting (crates.io publishers with push rights to every dependency), use cargo supply-chain:
cargo install cargo-supply-chain
cargo supply-chain update # fetch crates.io daily dump once (large download)
cargo supply-chain publishers # list publishers across the dependency graphThis is an interactive audit tool, not a CI gate — run it when onboarding major new dependencies or during periodic security reviews.
For general security questions or concerns, please contact us via the channels mentioned above.
Thank you for helping keep VT Code and its users safe!