Railway security incident, October 2026: what to rotate and check
Rotate every secret you stored on Railway before 21 October 2026 at the provider that issued it: Railway says a third party queried its encrypted environment variables and decrypted a subset, with at most 1.85 percent of workspaces (about 100,000) potentially affected. As of 1 November 2026 Railway has published a preliminary report (22 October) but no final report, and its status page update of 29 October says new signups are still paused.
What did Railway say happened?
Railway detected unusual activity in systems that store customer environment variables. Its disclosure of 21 October 2026 says a third party may have accessed encrypted variables and, for some, obtained the decrypted values: API keys, database credentials and private registry credentials. Railway describes the attack as part of a series against platform companies, aimed at compromising AI inference providers, and says it asked upstream providers to revoke keys.
The preliminary report adds the sequence below. All times are UTC and come from Railway; the report itself contains a few small timing inconsistencies, which Railway has not yet reconciled.
| When (UTC) | What happened | Source |
|---|---|---|
| 20 Oct, 13:58 | Start of the attack window in Railway's report. An attempted privilege escalation in build infrastructure was found and build pipelines were halted. | Preliminary report |
| 20 Oct, 17:03 | Incident declared on the status page. | Preliminary report |
| 21 Oct, 04:24 to 05:23 | The attacker pulled encrypted secrets but could not decrypt them at that point. | Preliminary report |
| 21 Oct, 05:27 to 09:18 | The attacker reached CI credentials and decrypted artifacts. Database evidence showed an unauthorized query of encrypted environment variables, and a subset was decrypted. | Preliminary report |
| 21 Oct, about 09:25 | Upstream providers asked to revoke keys. The report's FAQ gives 09:35 for this step. | Preliminary report |
| 21 Oct, evening | User sessions invalidated, disclosure published, deployments paused. | Disclosure, status page |
| 22 Oct, 03:32 | Railway confirms the attacker has no remaining access. Enterprise and Pro builds return over the next hours; all Railway API tokens were invalidated. | Preliminary report, status page |
| 22 Oct, late | Hobby, then Free and Trial builds re-enabled. New signups paused. | Status page |
| 23 Oct, 22:06 | Status incident marked resolved. New signups and the station.railway.com site were still listed as open items. station.railway.com restored 23 Oct, 22:03 UTC. | Status page |
The preliminary report is dated 22 October on Railway's blog; the status page announced it on 23 October. We found no final report on the Railway blog or status page on 1 November 2026. The preliminary report gained a section on 26 October: Railway says the incident "is resolved for existing users", that it cannot refund spend made with compromised API keys (contact the AI provider first), and that it would reopen signups "this week"; its status page on 29 October still says there is no reopening date.
What is known and what is not?
- Environment variables: encrypted variables were queried and a subset was decrypted. Railway says the query alone cannot show which specific keys were decrypted, so treat every secret stored there before 21 October as in scope.
- Scale: Railway states that at most 1.85 percent of workspaces had variables potentially compromised, and it also cites a figure of about 100,000. It says its group of higher-risk customers is larger than 1.85 percent, and an update on 23 October says workspaces outside the higher-risk groups are not confirmed safe.
- Accounts and running apps: Railway says individual user accounts were not logged into and existing deployments stayed online.
- Source code: access is not ruled out. Railway says the final report will confirm it.
- Still open: the final forensic report, the full exploit details (withheld for now), and some mitigations Railway chose not to disclose.
What should I rotate after the Railway security incident?
Rotating a secret means creating a new one at the service that issued it and revoking the old one there. Changing a variable inside Railway does not make a leaked provider key invalid. Work through the table in this order, because the first rows give an attacker the most.
| Where it lives | What to do | How to check for misuse |
|---|---|---|
| API keys in Railway variables (OpenAI, Anthropic, OpenRouter, Stripe, and similar) | Create a new key at the provider, revoke the old one, put the new value in Railway, redeploy. | Look at the provider's usage and billing pages for activity you do not recognize. Railway published a check guide for several providers. |
| Database passwords (PostgreSQL, MySQL, Redis, MongoDB) | Regenerate the password in Railway's database settings. Do not edit the password variable by hand. Redeploy every service that uses it, and replace pasted connection strings with reference variables. | Review audit and database logs, list active sessions, and look for unknown roles or unexpected data changes. PostgreSQL does not log successful connections by default. |
| Public database access | If nothing outside the project needs it, turn off public networking on the database. | Check which external tools use the public connection string, such as local development, CI or BI tools. |
| Railway tokens (CLI and CI) | All Railway API tokens were invalidated. Create new project or account tokens and update the secret in your CI provider. | Re-run the pipeline. Run railway logout, railway login and railway link locally. |
| Connected GitHub | Reconnect GitHub in your Railway account, confirm the Railway GitHub App still has access, reconnect each service's repository, then deploy the latest commit. | In GitHub, read your account audit log and review the installed apps. Revoke any personal access token used for ghcr.io; Railway removed its copy but the token still works on GitHub. |
| Private registry credentials | Roll the credentials for any private registry used by a service. | Read the registry's audit log, for example on Docker Hub. |
| Storage buckets | Railway reset bucket credentials itself. Redeploy services that use them and update anything outside Railway that held the old keys. | Look for unexpected uploads or deletions. Buckets have no automatic backups. |
| Railway audit logs | Export the entries you need; retention depends on your plan. | Credential resets done by Railway staff appear here and are expected. |
One practical trap: commits pushed while Railway paused deployments on 21 October were not deployed and not queued. After you reconnect GitHub, deploy the latest commit yourself. Containers read variables only at start, so a service keeps the old secret until it is redeployed.
A prompt you can give your coding agent
Help me audit what this project stores on Railway after the October 2026 Railway security incident. Work read-only. Never print, log or paste a secret value. 1. List the NAMES (not values) of environment variables this project uses, from `.env.example`, config files and the Railway CLI if it is available. Group them: third-party API keys, database credentials, registry credentials, tokens for CI or deploys. 2. For each group, tell me which provider dashboard I must open to create a new key and revoke the old one. 3. Find places where a secret value is pasted as plain text instead of a reference variable (for example connection strings in config files or CI settings). 4. List the CI workflows and scripts that use `RAILWAY_TOKEN` or `RAILWAY_API_TOKEN`. 5. Do not rotate, deploy or push anything. Give me a checklist in the order I should work through it, and mark what you could not see.
How often do AI models name Railway?
Agent Stack Picks asks AI models, without a repository or tools, to set up one part of a new app and counts the tool each model names first. Issue 2026-10 has 900 parsed picks from nine models; 63 of them are hosting picks. We measured on 19 October 2026, before the attack window Railway reports began, so these numbers say nothing about the incident. Model pick, not a product recommendation: they do not measure quality or security. See the methodology and the hosting category.
We recomputed the counts from the issue's JSON file for this note. Railway has its own pick page with the same data.
| Hosting context | Railway named first | Railway listed as an alternative only | All hosting picks |
|---|---|---|---|
| Python FastAPI | 5 | 3 | 16 |
| Next.js (TypeScript) | 0 | 4 | 16 |
| Vibe coder (no technology named) | 0 | 3 | 16 |
| EU users (GDPR) | 0 | 0 | 15 |
| All four contexts | 5 (8 percent) | 10 | 63 |
- Railway was named first in 5 of 63 hosting picks (8 percent; 95 percent interval 3 to 17 percent), all in the FastAPI context, where it was first in 5 of 16 picks. The other hosting picks went to Vercel (36), Render (8), Hetzner (6) and Fly.io (1) and a few others.
- The five first picks came from three models: the open model Laguna S 2.1 (3 of its 5 FastAPI hosting picks), Claude Sonnet 5.5 (1) and GPT-5.6 (1). Counting alternatives too, 15 of 63 hosting picks (24 percent) mention Railway, from 6 of the 8 models that answered the hosting prompts.
- Outside hosting, Railway was never a first pick. It appears as an alternative in 4 picks: "Railway PostgreSQL" in 3 database picks and "Railway cron" in 1 scheduled-jobs pick. Across all 900 picks, 19 mention Railway in any role.
- Small sample: the chat models gave one answer per prompt, so each has only 4 hosting picks, and the two free open models give 39 of the 63 hosting picks. One run, one month; a different month can shift all of this.
This does not show that agents deploy to Railway by default. It shows that in one run of prompts without any project context, a few models named it first when the app was Python FastAPI. A coding agent working inside a real repository is constrained by what is already there. If your agent set up a server you manage yourself, see how Docker's published ports can bypass ufw.
What is still open?
- Railway's final report, which will state whether source code was accessed and may revise the scope figures.
- Which specific keys were decrypted. Railway says this cannot be derived from the database query alone.
- Whether more mitigation or reset steps are announced. Check the Railway blog and status page for updates; last checked 1 November 2026; we will update this note when a final report appears.
Checked 25 October and 1 November 2026
The incident facts come from Railway's own disclosure (21 October), preliminary report (22 October, with the 26 October update), recommendation guides (22 and 23 October) and status incident QH8L8B3E, read on 25 October 2026. Status of the final report, signups and station.railway.com was re-read on 1 November 2026. We paraphrase them and add no information of our own about the attack. The pick counts come from issue 2026-10 (measured 19 October 2026) and are on the open data page. Our earlier note on Next.js and Node.js security releases covers the other security news of the same week.
Questions and answers
Do I need to rotate secrets if Railway did not email me?
Railway recommends it for everyone who stored secrets there before 21 October 2026. It emails customers it has confirmed as affected, and its update of 23 October says workspaces outside the higher-risk groups are not confirmed safe. If you have not rotated yet, do it now.
Does changing a variable in Railway fix a leaked API key?
No. The old key stays valid at the provider until you revoke it there. Create a new key at the provider, revoke the old one, then update the value in Railway and redeploy the service. Database passwords are the exception: regenerating them in Railway changes the password in the database itself.
Can I get a refund for AI spend on a leaked key?
Railway says it is unable to refund spend performed with compromised API keys and points customers to their AI token providers; after that, a support request at station.railway.com with timestamps and proof of the spend. As of 1 November 2026 that is the only route Railway describes.
Was my source code or my running app affected?
Railway says running deployments stayed online and individual user accounts were not logged into. It has not ruled out access to source code and says the final report will confirm it. Review your GitHub audit log and installed apps in the meantime.
Does this data mean AI agents deploy to Railway by default?
No. In our October run, models named Railway first in 5 of 63 hosting picks, all in the FastAPI context, and the sample is small. The data measures what models name without a repository, not what coding agents do in a real project, and it predates the incident.
Sources
- Railway: Security Disclosure, 21 October 2026
- Railway: Preliminary Report on the October 21st Security Incident
- Railway blog index (security posts)
- Railway status
- Railway status incident QH8L8B3E
- Railway: Rotate PostgreSQL Database Credentials
- Railway: Redeploy Buckets and Reconnect GitHub
- Railway: Recover Failing Deploys
- Agent Stack Picks issue 2026-10 data (CC BY 4.0)