If you host on Railway, rotate every secret you store there today. In a security disclosure dated October 21, Railway says an unauthorized third party may have accessed environment variables, and for some of them obtained the decrypted contents.

What Railway says happened

Railway detected anomalous activity on the morning of October 21 on systems that store customer environment variables. Those can include API keys and database or registry credentials.

Railway believes this is part of a series of attacks on platform companies aimed at compromising AI inference providers. It notified those providers so they could revoke keys proactively.

Who needs to act

Railway says impact may be limited to a subset of users, but it tells all users to act. Affected customers will be emailed. Do not wait for that email.

Railway paused builds and deployments during the investigation and is restoring them by plan. Railway's status page lists the current state of each plan. Enterprise and Pro builds are back, with Hobby next, then Free and Trial.

Update from Railway's status page

Per the Railway status page:

  • Railway is rotating all storage-bucket credentials itself. New credentials appear in your dashboard automatically, but your services need a redeploy to pick them up, and that works only once builds are available on your plan.
  • You may see credential revocations in your audit logs, made by a Railway employee. Railway says this is expected.
  • Railway invalidated OAuth sessions, so some users are signed out and must log in again.
  • Railway invalidated all API tokens, so integrations stop working until you create new ones.

Rotate these if you use them

Railway published one guide for each service below, all dated October 22. Find yours and follow its steps:

  • Stripe: Railway's guide says to rotate any exposed secret or restricted key, then review request logs for charges, refunds or payouts you do not recognize.
  • OpenAI: Railway's guide says to delete the exposed key, check usage for requests you did not make, and redeploy with a new key.
  • Anthropic: Railway's guide says to revoke the exposed key, review Console usage and logs, and redeploy with a new key.
  • Grok (xAI): Railway's guide says to disable the exposed key, check the Usage Explorer, and redeploy with a new key.
  • OpenRouter: Railway's guide says to disable the exposed key, check the Activity page for models you never use, and redeploy with a new key.
  • AWS: Railway's guide says to create a new access key, deactivate the old one, update the Railway variables, then check CloudTrail, the IAM credential report and Cost Explorer.
  • Google Cloud: Railway's guide says to create a replacement service-account key, disable the exposed one, update the variable, then review Cloud Audit Logs, IAM roles and billing.
  • GitHub: Railway's guide says to review your security log, authorized apps and keys for access you did not grant.
  • GitHub and buckets after the reset: Railway's guide: Railway reset bucket and GitHub credentials for you; redeploy with the new bucket credentials and reconnect GitHub.
  • PostgreSQL: Railway's guide says to regenerate the password in the Database View, redeploy every service that uses it, and confirm nothing still connects with the old one.
  • MySQL: Railway's guide says to regenerate the password in the database's Config tab and redeploy every dependent service. Regenerating restarts the database and drops open sessions.
  • MongoDB: Railway's guide says to regenerate the password, redeploy every service that uses it, and verify the old credential is gone.
  • Redis: Railway's guide says to regenerate the password, redeploy every service that uses it, and verify the old credential is gone.

Builds and redeploys depend on your plan's restore status, covered above.

Per TechCrunch, Railway has not said how many users are affected or what the root cause was.

What to do now

This is general advice, not Railway's instructions beyond the rotation request:

  1. Rotate at the provider first. Generate a new key or password, then revoke the old one. The exception is a database that runs on Railway (PostgreSQL, MySQL, MongoDB, Redis), which you rotate in Railway using the guides above.
  2. Start with AI provider keys and database credentials, then private registry credentials and everything else.
  3. Update the variables in Railway, then redeploy once builds are available on your plan.
  4. Check each provider's logs for requests you do not recognize, and review your Railway logs too.

Where to follow along

Railway says updates will appear on its post and on status.railway.com.

Related reading: GitLab critical flaw patch, Plex Media Server security update, Claude Code settings.local.json can leak your passwords on GitHub, Binance hack traced to a fake job interview and mSecure data breach: what to do if you sync via mSecure Cloud.