rotateit

All incidents

Railway environment-variable storage breach

Disclosed Oct 21, 2026 · updated Oct 30, 2026 · critical · Contained

Railway was breached.

Are you affected?

The free scanner that answers this opens soon. Until then, the steps below work by hand.

What happened

Railway's environment-variable storage was breached. On the morning of 2026-10-21 Railway detected anomalous activity in the systems that store customer environment variables. An unauthorized party may have accessed encrypted variables and, for some of them, obtained the decrypted contents. Railway says impact may be limited to a subset of users but asks all users to roll every variable stored in Railway, plus private registry credentials. Builds were paused on 2026-10-21 and re-enabled in stages from 2026-10-22 (Enterprise, then Pro, Hobby, Free/Trial). Railway invalidated OAuth sessions (2026-10-21 20:30 UTC), rotated all bucket credentials (22:37 UTC) and invalidated all Railway API tokens (2026-10-22). Railway's preliminary report puts the attack between 2026-10-20 13:58 UTC and 2026-10-22 03:32 UTC, when it confirmed the attacker had no remaining access. The attacker got into build and CI infrastructure, then queried the database of encrypted environment variables and decrypted a subset; Railway says at most 1.85% of workspaces, about 100,000, had variables potentially exposed, that the attacker was looking for AI credentials, and that workspaces outside its higher-risk groups are not confirmed safe. It revoked all Railway access tokens and rolled all its GitHub App installations. The incident was marked resolved on 2026-10-23.

Exposure starts
2026-10-20
Exposure ends
2026-10-22
Confidence
medium
Scope
any variable stored in Railway before 2026-10-21, including sealed variables; at most 1.85% of workspaces had variables potentially exposed, but Railway has not cleared the rest

What to do, in this order

  1. Railway API and project tokens

    Upstream of everything Railway stores. Railway invalidated all API tokens on 2026-10-22; create new ones and replace every copy in CI and .env files. The notices do not mention project tokens, so replace those too.

    railway_api_token, railway_project_token

  2. Database and cache connection strings stored as Railway vars

    Highest blast radius. Change the password at the database itself first, then update the Railway variable.

    postgres_url, mysql_url, redis_url, mongodb_url

  3. Third-party API keys and private registry credentials stored as Railway vars (payments, email, AI, cloud)

    Rotate at each upstream provider first, as Railway's GCP and AWS guides do: create the replacement, disable the exposed key at the provider, then update Railway. Railway names private registry credentials explicitly.

    anything else stored there

  4. Webhook signing secrets and OAuth client secrets

    Last, because the services that check them must be updated in the same deploy.

    stripe_webhook_secret

  5. Redeploy, then review service logs

    A changed Railway variable takes effect only after a deploy. Railway asks everyone to recreate CLI and CI credentials, reconnect GitHub, redeploy the latest commit (commits pushed during the pause were not deployed), review GitHub audit logs and registry logs, and remove public network access to databases.

Notes

  • Sealed variables are included. Railway's docs say a sealed variable's value is still provided to builds and deployments; sealing hides it from the UI and API, and Railway's advice is to roll all environment variables.
  • Rotate at the upstream provider first. Railway's own GCP and AWS guides create a replacement key and disable the exposed key at the provider before updating the Railway variable.
  • Railway's API tokens were invalidated, so a token you still hold no longer works. The preliminary report says all Railway access tokens were revoked but does not name project tokens.
  • Railway emailed customers with a high likelihood of impact and then wider higher-risk groups (workspaces with many variables or many AI provider keys); it finished on 2026-10-23. Not getting an email does not mean a workspace is safe. Railway says customers who already rotated since containment need not repeat it.
  • Railway did not publish the entry point or indicators. The start date is the first page Railway lists (2026-10-20 13:58 UTC); the report does not say when the intruder first got in, so confidence is medium.

How to tell if you’re affected

  • CLI source is railway, or GitHub Actions deploys to Railway
  • .env values that also exist as Railway vars (fingerprint match)

Sources

Rotating the keys

Pro, $49 a year when it opens, plans the rotation of each affected key for this incident, in this order. Automatic rotation is in testing and included.

One email when it opens. Stored: your email, whether you confirmed, and when you signed up. We send a confirmation link first.

By hand, free: the steps above.