Security

How Stepwise is built to be safe

  • No server-side data. No accounts, no database, no stored questions or answers. Each analysis lives in memory for one request. What the server never keeps, it can't leak.
  • API keys stay with the user. A key is saved in the user's browser, sent to the server only in the body of a run/test request, forwarded to the chosen provider, and never logged, stored or returned. Provider errors are trimmed before being shown and never include the key.
  • Strict Content Security Policy. Scripts load only from Stepwise's own origin - no executable inline scripts, no third-party code, fonts or trackers. (Pages carry one inline JSON data block that never runs as code, and a few inline styles.) Reports kept in browser storage are rendered with Jinja auto-escaping on the server, and the CSP prevents any script inside them from running. Other headers: X-Frame-Options: DENY, Referrer-Policy: no-referrer, X-Content-Type-Options: nosniff, a restrictive Permissions-Policy, and Cache-Control: no-store on API responses.
  • No ambient credentials. Stepwise sets no cookies, so cross-site request forgery has nothing to ride on: every request carries its own data.
  • Server-side request forgery. Visitors can point Stepwise only at vetted provider addresses, unless the operator enables custom addresses (STEPWISE_ALLOW_CUSTOM_URLS), which is on for self-hosted installs (needed for a local Ollama) and off by default on serverless hosts.
  • Protecting the operator's key. A house model can require an access code (STEPWISE_ACCESS_CODE, compared in constant time) and has a per-IP hourly cap.
  • Input limits. Questions and plans are capped at 20,000 characters; tool inputs are validated and bounded.
  • Markdown rendering. Library documents are rendered with an allow-list sanitizer (bleach).

Known limits

  • Browser storage is readable by anyone using the same browser profile, and by malicious browser extensions. Profiles are a convenience, not a lock. Users on shared computers should forget their connection or wipe Stepwise's data when done.
  • The house-model rate limit is in memory; on serverless hosts it only applies per warm instance. Use an access code and a provider-side spending cap.
  • Answers come from a language model and can be wrong; Stepwise doesn't verify them.

Reporting a vulnerability

Please report security issues privately through GitHub's Report a vulnerability (Security Advisories) on this repository rather than opening a public issue. Include steps to reproduce. We'll acknowledge within a week.