← All writing

2 min readSecurityBuild toolsReact

When the security fix is a new build tool

Some security alerts can't be fixed by bumping a version, because the tool holding the old version is no longer maintained. Moving a React app off Create React App to clear them.

Our legacy operations console was built with Create React App (CRA), through a configuration layer called craco. By late 2025 its security alerts had a pattern: most were in packages none of us chose, such as the dev server, its proxy and old parsers, pulled in by react-scripts. And none of them could be fixed by upgrading, because there was nothing to upgrade to.

Why bumping didn’t work

CRA bundles a fixed set of tools at fixed versions. You don’t control them; react-scripts does. When a new advisory comes out for one of them, the fix is a new react-scripts release. But the React team deprecated Create React App in February 2025. No new releases means the alerts only accumulate.

You can force newer versions with npm overrides, but you’re then running a combination CRA was never tested with. Some work; some break the build in ways that take days to find.

What I did

On a dedicated branch in December 2025, I moved the console to Rsbuild, a maintained, fast build tool, and to React 18:

  • An rsbuild.config.js with the same import aliases CRA allowed, the same REACT_APP_ environment variables, the dev proxy and the same output folder, so deploys didn’t change.
  • Removed craco and its config.
  • Upgraded React to 18.3 and the libraries that needed it (QR codes, PDF viewing), then fixed the components and lint errors the upgrades exposed.

The branch built and cleared the alerts it targeted. It hasn’t been merged: a build-tool change touches every page of a large internal app, and it’s waiting for a proper round of testing.

What I learned

  • Some alerts are symptoms. A steady stream of unfixable alerts from one tool means the tool is the problem. Treat it as a migration, not a list of tickets.
  • Keep the outside the same. Matching aliases, environment variables and the output path meant the rest of the system didn’t have to know anything changed. That makes a big change reviewable.
  • Unmaintained is a security property. When choosing tools, “is anyone still releasing this?” matters as much as speed or features.
  • A migration isn’t done until it’s merged. A finished branch still leaves production on the old tool. Getting it tested and shipped is part of the fix.
↑↓ move↵ openesc close