Skip to content

Tech StacksNews take7 min read

Railway Security Incident: What Happened and What to Rotate Now

Railway, the app hosting platform, disclosed that customer environment variables may have been accessed and decrypted. Railway asks every customer to rotate their secrets, not only the ones it emails.

By ·

Source: blog.railway.com

Railway, the app hosting platform, disclosed on October 21, 2026 that an unauthorized third party may have accessed the encrypted environment variables of its customers, and decrypted some of them. Environment variables are where most apps keep their secrets: database passwords, cloud keys, GitHub tokens and AI provider API keys. If you host anything on Railway, assume your secrets are exposed until you have rotated them.

This one is close to home. TravelEase, the tourism portal my capstone team built, is hosted on Vercel and Railway. This take is part of my Tech Stacks writing, and it applies to anyone who keeps API keys on a hosting platform, including the n8n and OpenRouter chatbot setup I wrote about.

What happened?

Railway detected “anomalous activity involving systems that store customer environment variables” on the morning of October 21, according to its security disclosure, written by Jacob Cooper. The company believes the attack is part of a series aimed at platform companies, with the goal of compromising AI inference providers. Railway says it notified upstream providers so they could revoke keys proactively.

Railway tracks running into the distance

Railway, the app hosting platform, disclosed that customer environment variables may have been accessed. Photo: Dr. Chinchu C., CC BY-SA 4.0.

Railway founder Jake Cooper shared the notice on X:

Jake@JustJake

Today, we were alerted of malicious activity that compromised Railway's servers

We are sharing this with you broadly and swiftly. We recommend folks rotate their keys out of an abundance of caution.

Post by Jake (@JustJake) on X, 21 Oct 2026

The Railway status page incident shows how the response unfolded. All times below are UTC; add eight hours for Manila time.

Time (UTC)What happened
Oct 21, 07:24Railway starts investigating an issue
Oct 21, 09:28Dashboard, API and CLI are down; builds paused in all regions
Oct 21, 20:19OAuth sessions invalidated; affected users must log in again
Oct 21, 21:59Security notice published; customers told to rotate variables and review logs
Oct 21, 22:10Railway starts rotating all bucket credentials
Oct 22, 01:22Railway publishes guides on recommended security steps
Oct 22, 03:32Builds return for Enterprise; Pro, Hobby, Free and Trial to follow
Oct 22, 04:17All Railway API tokens invalidated; users need new tokens
Oct 22, 06:29Builds available for Pro and Enterprise
Oct 22, 12:30Deployment wait times improving; Hobby next, then Free and Trial

As of the 12:30 UTC update on October 22, the incident was still marked “Identified,” and Hobby, Free and Trial builds had not returned yet.

Who is affected?

Railway’s initial analysis suggests the impact “may be limited to a subset of users,” and the company says it will email affected accounts. The review is still ongoing, which is why the disclosure asks every customer, not only the emailed ones, to roll their secrets.

A rack-mount server with its cover off, showing memory and drives

Environment variables hold an app’s secrets, such as API keys and database passwords. Photo: Mynameismael, CC0.

Railway has not said how many accounts are in that subset, how the attacker got in or how the decryption happened. Sealed variables are another open question. Railway’s variables docs say a sealed value is never shown in the UI and cannot be retrieved through the API or CLI. GitGuardian’s analysis of the incident notes the disclosure does not say whether sealed variables were in scope, and recommends rotating them as well. Until Railway answers these questions, every Railway user should act as if affected.

Update, November 19, 2026: Railway’s November 10 incident report says the attacker got in through a previously unknown flaw in its build infrastructure, then reached a longer-lived cloud credential and used it to decrypt some variables on October 21. It puts the upper bound at about 100,000 workspaces, or 1.85%, says the stored histories of 353 builds were read, sealed variables included, and estimates about US$740,000 in unauthorized AI token spend.

How serious is it?

The Railway incident is serious because environment variables are keys to other systems. A leaked AWS key, a GitHub token or a database password lets an attacker act outside Railway, in your cloud account, your code or your customer data. Railway’s own follow-up guides for AWS, Google Cloud and GitHub show where the damage can spread: new IAM users, new compute instances, surprise charges and webhooks that survive a password reset.

There are early signs of real losses. Blockchain investigator Taylor Monahan estimated about US$371,000 in crypto theft across at least 19 networks, with a first theft transaction at 19:36 UTC on October 21, as reported by crypto.news. That figure is an outside estimate. Railway has not confirmed it, or how wallet credentials were obtained. In short, this is a credential exposure with reported abuse, not just an outage.

What does it mean for small businesses and founders?

Railway is popular with small teams because it removes server work: push code, set a few variables, and the app is live. The same convenience means one platform holds the keys to everything else the business runs on. For a founder in Manila with a booking app or a client portal, that can include the payment gateway key, the email provider key, the database and the AI chatbot’s API key.

The cost of this incident is mostly time. Rotating a dozen secrets across several services, redeploying and reading logs can take a full day, and some steps wait for builds to return on your plan. A small business that never listed where its keys live will spend most of that day just finding them. The lesson is to know your secrets before an incident, not during one.

What should you do now?

Labels show where each step comes from: Railway’s disclosure and guides, or standard incident practice.

  1. Check your email and the status page. Railway is emailing affected accounts, and the status page shows when builds return for your plan. (Railway)
  2. List every secret you store on Railway. Go through each project, service and environment, including shared variables and sealed ones. Note where each key comes from and what it can do. (Standard practice)
  3. Rotate AI provider, cloud and code-hosting keys first. Railway says the attackers were after AI inference providers, so start with AI API keys, then AWS, Google Cloud and GitHub credentials, then database passwords. If a variable holds a crypto wallet key, treat that wallet as compromised. (Railway, standard practice)
  4. Rotate at the source, then update Railway. Create the new key with the provider first, deactivate the old one, then update the variable and deploy. Railway’s guides suggest deactivating rather than deleting the old key at first, so you can switch it back on briefly if something breaks. (Railway)
  5. Roll private registry credentials and create new Railway API tokens. Railway invalidated all API tokens on October 22, so CI pipelines and scripts that use them need new ones. (Railway)
  6. Update every copy outside Railway. Local .env files, CI secrets and teammates’ machines often hold the same keys. (Railway)
  7. Review logs for the exposure window. Check AWS CloudTrail, Google Cloud Audit Logs, the GitHub security and audit logs, and your app and database logs. Export logs before you revoke anything, so you keep the evidence. (Railway)
  8. Look for anything the attacker left behind. Remove unknown IAM users, access keys, SSH keys, OAuth apps, deploy keys and webhooks, and compare this month’s cloud bill with last month’s. (Railway)
  9. Check your duty to tell customers. If your database held personal data and its password was stored on Railway, review your obligations under your local data privacy law. (Standard practice)

What can we learn from it?

The Railway incident shows that a hosting platform is part of your security perimeter, whether you planned it or not. Three habits would have made this week easier.

First, keep a short secrets inventory: what each key is, where it lives and how to rotate it. Second, use keys with the smallest scope and a spending limit where the provider allows it, so a stolen key can do less. Third, make misuse easier to spot. Railway’s Google Cloud guide notes that with static outbound IPs, API calls from any other address suggest misuse, while shared IPs leave you guessing.

None of this requires leaving Railway. It requires assuming that any place you store a secret can leak it, and planning for the day it does.

IBM Technology’s explainer covers secret sprawl, plaintext storage and rotation, the habits that make a week like this one shorter:

Secrets Management: Secure Credentials & Avoid Data Leaks, a video by IBM Technology
Video: Secrets Management: Secure Credentials & Avoid Data Leaks by IBM Technology, on YouTube.

Where can you learn more?

Questions people ask

Are sealed variables on Railway safe from this incident?

Not confirmed. Sealed variables cannot be read back through Railway's UI, API or CLI, but the disclosure does not say whether they were in scope, so GitGuardian recommends rotating them too. Railway's November 10 incident report says the stored histories of 353 builds were read, sealed variables included, so treat them like every other secret.

Do I need to move off Railway because of this?

Not necessarily. The urgent job is rotating secrets and checking logs, which you would need to do wherever you moved. Decide on hosting after reading Railway's November 10 incident report on how the attacker got in.

Tools in this post

Share

Keep reading

More in Tech Stacks.

Get new posts by email

One email every two weeks: new posts, news takes and one personal note, so you keep up with AI, automation and SEO without checking the site.

No spam. Unsubscribe any time. By subscribing you agree to the privacy policy.

Prefer a feed? Follow by RSS. About the newsletter.

It’s Showtime, folks! · All That Jazz (1979)