Skip to content
An Empty Value Meant Everything: Cloudflare's February 2026 Outage
Cloud & Scale

An Empty Value Meant Everything: Cloudflare's February 2026 Outage

November 23, 2026 · Kody Doherty
  1. 01

    Cleanup task runs

    automated, routine

  2. 02

    Empty flag sent

    no value passed

  3. 03

    Read as 'all'

    every BYOIP prefix

  4. 04

    About 1,100 withdrawn

    of 4,306, about 25%

  5. 05

    Restored by 23:03 UTC

    the last 300 by hand

Automation did exactly what it was told. Nobody had told it what 'nothing' meant.

On February 20, 2026, an automated cleanup job at Cloudflare started withdrawing customers’ own IP address ranges from the internet. According to Cloudflare’s post-mortem, about 1,100 of 4,306 “bring your own IP” prefixes, roughly a quarter, were withdrawn before an engineer stopped it.

The cause is one every team that writes automation should recognise: a request with an empty value. In Cloudflare’s words, “the API server interprets this as a request for all BYOIP prefixes.”

What happened

  • February 5: the code with the bug was merged.
  • 17:46 UTC, February 20: it was deployed. A cleanup task sent an API query with an empty flag. The API read that as “all prefixes”, and the task began deleting them.
  • 18:18: incident declared. 18:46: the task was stopped.
  • 19:19: customers were told they could re-advertise their prefixes from the dashboard. About 800 were restored by around 20:20.
  • 23:03: the last 300 were fixed by hand and the incident resolved. Cloudflare gives the duration as 6 hours 7 minutes (its own start times differ slightly).

Why it was not caught

Cloudflare’s account is candid. Staging used inadequate mock data, so the test environment never looked like production. Tests did not cover the task running without input. And the change fell under a programme Cloudflare was rolling out to make configuration changes roll out gradually (“Code Orange: Fail Small”), which was not yet fully in place.

What Cloudflare committed to

A standard API schema, separating operational state from configured state so rollback is fast, snapshot deployments with health-checked rollout, and a circuit breaker that halts changes moving “too fast or too broadly”.

What this means for your team

Every company with cleanup scripts, scheduled jobs, data migrations or bulk APIs carries this risk. The fixes are cheap:

  1. Make “empty” an error. An API that deletes or changes things should reject a missing or empty filter, never treat it as “everything”. Require an explicit “all” if you ever need it.
  2. Cap the blast radius. A job that normally touches ten records should stop itself, and page someone, when it is about to touch a thousand. That is Cloudflare’s circuit breaker, and it is a few lines of code.
  3. Test with realistic data. Staging that looks nothing like production hides exactly these bugs. Use anonymised production-shaped data.
  4. Test the no-input case. For every automated task, one test: what happens when it runs with nothing?
  5. Prefer reversible actions. Mark for deletion, then delete later, so a bad run can be undone in minutes, not hours.

Frequently asked questions

What caused the Cloudflare outage on February 20, 2026? An automated cleanup task sent an API request with an empty flag, which the API treated as a request for all BYOIP prefixes, withdrawing about a quarter of them.

Was customer data lost? The post-mortem describes withdrawn IP prefixes, which made services unreachable; prefixes were restored the same day.

What is the cheapest safeguard against this kind of failure? Reject empty filters on destructive operations, and cap how many records any automated job may change in one run.

Sources

  • Cloudflare, “Cloudflare outage on February 20, 2026”, David Tuber, February 21, 2026: blog.cloudflare.com

Where to start

Automation you cannot trust is worse than none. The Modernization Map ($4,500, 2 weeks) finds the scripts and jobs that could do this to you and orders the fixes. Modernize has the details, and every price is on the pricing page.

Need this done, not just read about?

AI agents, automation, security or an AWS cost review - let's talk.

Book a call →