It usually shows up at the worst possible moment. You’re halfway through a feature, or about to push something, or — my personal favourite — it’s late in the day and you were just closing tabs. Then someone drops a link in the team chat. Big red headline. Critical vulnerability. A name you’ve half-heard of, in a library you are fairly sure you use.
Your stomach does the thing. Mine does, anyway.
I have been the developer who immediately ran an update command on everything, broke a build, and then realised the vulnerable package wasn’t even in the project I was panicking about. I have also been the one who shrugged at a headline, went back to my ticket, and found out two days later that yes, it was in production, and yes, it was reachable. Neither version felt great.
So this is not about being calm and brilliant. It’s about having a rough order to follow for the first hour, so you don’t waste it either panicking or shrugging. The rest of the day matters too, of course. But the first hour is where most of the avoidable mess happens.
First, actually read the thing
Not the headline. Not the tweet about the headline. The advisory itself.
It takes two minutes and it feels painfully slow when everyone is asking questions, but it saves you twenty minutes of guessing. You’re looking for a few plain facts, nothing fancy:
· Which package, library or framework is affected — the exact name.
· Which versions are affected, and which version fixes it.
· What an attacker actually has to be able to do. Can they hit it over the internet with no login, or do they need an account, a special file, a weird configuration?
· Whether it’s a problem in the code itself, or only when a certain feature is switched on.
That last one matters more than people think. I once spent a frantic half hour on a flaw in a feature we had never enabled. The package was there. The feature wasn’t. Reading the advisory properly would have told me that in the first paragraph.
Write down what you find, even if it’s just in the chat thread. Version affected, fixed version, how it gets triggered. When someone asks you an hour later what you checked, you’ll be glad you didn’t try to keep it all in your head.
Now work out if it’s even in your project
This is the bit developers are actually best placed to do, and it’s where a lot of generic advice falls apart. A headline doesn’t know your lockfile. You do.
Start simple. Search the project. Check your package file and your lockfile — package.json and package-lock.json, composer.json and composer.lock, requirements.txt, Gemfile.lock, whatever your stack uses. Search the whole repo, not just the main app. The vulnerable thing loves to hide in the place you forgot: the old admin tool, the little upload service, the demo you put up for a client last year and never took down.
And remember transitive dependencies. That’s the dry term for a simple, annoying fact: you may never have installed this package directly. Something you installed installed it. So a quick search of your own code coming up empty doesn’t settle it. The lockfile is the honest record. Look there.
Then ask the question that changes everything: even if it’s present, is the vulnerable part actually used?
There’s a real difference between these three:
· It’s in the lockfile but nothing in production loads it — a dev tool, a test helper, something that never ships.
· It’s loaded in production, but your code never calls the vulnerable function or route.
· It’s loaded, you call it, and it faces the internet.
Only the third one is a drop-everything problem. The first one still needs tidying up, but not at panic speed. Being able to say which of the three you’re in — out loud, to another human — is most of the job in the first hour.
One more trap, and I’ve fallen into it: your laptop is not production. Your local project might be three updates ahead of what’s actually live, or behind it. Check what’s deployed. Check the live version, the live build, whatever your hosting shows you. Answer for the site real people are visiting, not the folder on your machine.
So, the first hour itself
If you want a wider read onwhat to do in the first hour when a flaw like this breaks — the questions to ask about exposure before you touch anything — it’s worth a look before the next headline lands, not during it. For a developer in the middle of one, though, the order below is the one I’d stick to. Not because it’s perfect. Because swapping the steps around is how time disappears.
Minutes 0 to 10, you read and you search. Advisory, lockfile, production version. No updating yet. I know. Your fingers itch. Wait anyway.
Minutes 10 to 25, you decide which of those three situations you’re in — not present, present but not reachable, or present and reachable. That decision sets the speed for everything after it. If you’re not sure, say you’re not sure and treat it as reachable until you can show it isn’t. That’s not paranoia, that’s just not lying to yourself.
Minutes 25 to 45 are for the fix, or the temporary fence if there isn’t a fix yet. That’s the next two sections.
And the last 15 minutes are for a quick look at the logs and a plain message to whoever needs to know. Not a report. A message. We’ll get to both.
If there’s a patch, take it — then test like you mean it
If a fixed version exists and you’re actually affected, update. Just that package where you can, rather than updating the world in one go. A giant update that pulls in forty unrelated changes on a stressful morning is how a security fix turns into a broken checkout.
Then do the boring bit that everyone wants to skip. Run the build. Run the tests if you have them. Click through the thing yourself — log in, load the main pages, do the one action your users do most. I once pushed a clean, correct security update that quietly broke image uploads because a related package had changed how it handled files. The vulnerability was fixed. The client noticed the uploads before I did. That’s a bad trade, and it was avoidable with four minutes of clicking.
Keep the way back open, too. Know what version you were on before, and how you’d roll back if the deploy goes sideways. Write it in the chat before you deploy, not from memory during it.
Deploy, then check the live site again — not staging, the live site. Confirm the new version is what’s actually running. Deploys fail quietly more often than anyone admits.
If you can’t patch yet, buy time honestly
Sometimes there’s no fixed version yet. Sometimes there is, but it needs a bigger upgrade you can’t safely do in an hour. That happens. It doesn’t mean you do nothing and hope.
Ask what you can make harder to reach in the meantime. Can the affected route or feature be switched off for a bit? Can you put it behind a login if it isn’t already? Is there a firewall or hosting rule you can add to block the obvious attack pattern the advisory describes? Can you turn off the upload, the import, the preview — whatever the trigger is — and live without it until tomorrow?
A site with one feature paused for a day is an inconvenience. The same site left wide open because pausing felt embarrassing is a different conversation entirely. Tell the client or your lead what you’ve switched off and why. People accept a paused feature surprisingly well when you explain it before they find it themselves.
What I wouldn’t do is invent a fix. Don’t edit library code in place because a forum post suggested it, don’t copy a snippet you don’t understand into production, and don’t declare it sorted because you changed a version number somewhere. A temporary fence you understand beats a clever patch you don’t.
Have a quick look at the logs. A quick one.
You’re not doing a full investigation in the first hour, and you don’t need to pretend to be. You’re just checking for the obvious: has anyone been poking at the vulnerable path already?
Look at your access logs and, if you have one, your firewall or security plugin log. Scan for a sudden run of requests to the affected route, lots of failed attempts, strange payloads, traffic from one source hammering the same endpoint. Most of the time you’ll find nothing exciting, and that’s a fine result. Note that you looked, and when.
If you do find something odd, stop fixing and start preserving. Don’t tidy up, don’t delete logs, don’t keep redeploying over the top of it. Save what you found, note the times, and get help. That’s above most of our pay grades as the person who built the site, and there’s no shame in saying so early.
Tell people in plain words
Developers are bad at this part, and I include myself. We either say nothing until everything is finished, or we send a message so full of version numbers that nobody else can tell if it’s good news or bad.
Send something short, early. Which site. Whether it’s affected, or that you’re still checking. What you’ve done so far. What happens next and roughly when you’ll update again. That’s it.
Something like: “The flaw in the news is in a package this site uses. I’ve checked — our live version is affected, the fix is applied and I’m testing the deploy now. I’ll confirm once it’s live.” A message like that takes ninety seconds and it stops three other people spending their morning imagining worse versions of the story.
And if the answer is “we’re not affected,” say that too, with the reason. “Checked the live build — we don’t use that package” closes the question. Silence doesn’t.
The first hour, on one page
Pin this somewhere if it helps. It’s not clever. It’s just the order.
One last thought, because it’s the bit nobody tells junior developers. Most newly disclosed flaws will not turn out to be your emergency. You’ll do the search, find the package isn’t there or isn’t reachable, and get on with your day — and that checking was still the job. The hour isn’t wasted when the answer is “not us.”
The developers who handle these mornings well aren’t the ones who type fastest. They’re the ones who can show, step by step, what they checked. Keep the notes, keep the order, and the next headline — there will be a next headline — gets a lot less dramatic.
|
Time |
Do this |
What you’re checking |
|
0–10 min |
Read the advisory |
Exact package, affected versions, fixed version, how it gets triggered. |
|
0–10 min |
Search the project |
Package file, lockfile, whole repo — including the old tool you forgot. |
|
10–25 min |
Check production |
Live version, not your laptop. Present? Reachable? Facing the internet? |
|
10–25 min |
Say which case you’re in |
Not present, present but not reachable, or present and reachable. |
|
25–45 min |
Patch if you can |
Update that package, run the build, click through the main flows yourself. |
|
25–45 min |
Fence it if you can’t |
Switch off the trigger, restrict the route, add a blocking rule. |
|
45–55 min |
Glance at the logs |
Look for repeated poking at the affected path. Note that you looked. |
|
55–60 min |
Send a plain update |
Affected or not, what’s done, what happens next, when you’ll update again. |