Skip to content

Security: SuarezPM/kitty-code

Security

SECURITY.md

Security Policy

Supported Versions

We actively maintain security fixes for the following versions:

Version Supported
main ✅
< 1.0 ❌

Only the latest release on the main branch receives vulnerability patches. Older tagged releases are not supported — please upgrade before reporting.

Reporting a Vulnerability

If you discover a security vulnerability, please report it privately so we can fix it before public disclosure.

Preferred channels (private):

When reporting a vulnerability, please include:

  1. Description of the vulnerability and potential impact
  2. Steps to reproduce or proof-of-concept
  3. Affected version / commit and environment
  4. Suggested mitigation if known

Do not open a public issue for security reports. We will treat every vulnerability report as confidential.

Response Timeline

We are committed to a timely response for every vulnerability report:

  • Initial acknowledgement: within 48 hours of receipt.
  • Triage and assessment: within 14 days — we will confirm the issue, determine severity, and share a remediation plan.
  • Fix and release: we aim to ship a patch as soon as possible depending on complexity; critical issues are prioritized within days.
  • Coordinated disclosure: we will agree on a disclosure date with you once a fix is ready.

If you do not receive an acknowledgement within 48 hours, please follow up via the alternate channel above.

Disclosure Policy

We follow coordinated disclosure to protect users. Once a vulnerability is confirmed:

  • We will keep the report confidential until a fix is available.
  • We will notify affected users via a GitHub Security Advisory and release notes.
  • We ask reporters to avoid public disclosure before we have published a fix and to allow at least 14 days for remediation, or a mutually agreed disclosure timeline.
  • After the fix is released, we publish an advisory describing the vulnerability, its impact, and the patched versions.

Release verification

Every release is built by automation — never on a maintainer laptop. Pushing a version tag runs .github/workflows/release.yml, which compiles kitty-cli in release mode, attaches the CycloneDX SBOM, and publishes both as release assets. Each asset ships with:

  • A keyless cosign signature (.sig) plus its Rekor bundle (.bundle), produced with ambient OIDC identity — there are no long-lived signing keys or secrets to manage.
  • A build-provenance attestation recording which workflow built the asset from which source.

To verify a downloaded asset (example: the kitty-cli binary with its kitty-cli.bundle sidecar in the same directory):

  1. Verify the keyless signature and its Rekor inclusion proof:

    cosign verify-blob \
      --bundle kitty-cli.bundle \
      --certificate-identity-regexp '^https://github.com/SuarezPM/kitty-code/.github/workflows/release.yml@refs/tags/' \
      --certificate-oidc-issuer https://token.actions.githubusercontent.com \
      kitty-cli
  2. Verify the build provenance attestation:

    gh attestation verify kitty-cli --repo SuarezPM/kitty-code

Both commands must succeed. If either fails, do not run the binary — please report it through the private channels above.

Embedded serving bind scope

Política viva en engine/mistralrs-core/src/serving/config.rs (ServingConfig): bind por defecto 127.0.0.1:8080 (solo loopback, sin token); cualquier bind no-loopback (0.0.0.0, ::, IP externa) exige KITTY_API_TOKEN — validate() falla el arranque sin él y check_route() deniega aunque el arranque se saltara el gate. Rutas Admin (/admin/*), Logs (/logs) y Metrics (/metrics) exigen bearer cuando hay token o el bind es externo; /health queda abierta. Rate-limit token-bucket sin dependencias (KITTY_RATE_LIMIT_RPS/_BURST); CORS es allow-list (KITTY_CORS_ORIGINS, fail-closed) con hook documentado para tower_http::CorsLayer (dep HELD: requiere entrada nueva en mistralrs-core/Cargo.toml). Nunca exponer sin token + rate-limit + bind loopback; sin change-me defaults en ningún lado.

Credit

We believe in giving credit to security researchers. With your permission, we will publicly acknowledge your contribution in the advisory, release notes, and in this repository. If you prefer to remain anonymous, we will respect that choice.

Thank you for helping keep Kitty Code and its users safe.

There aren't any published security advisories