← All writing

2 min readSecurityDependenciesaxios

Does this alert even apply to a browser app?

Upgrading axios in a frontend-only app, and what I learned sorting its advisories into "affects us", "only on a server" and "worth patching anyway".

Our legacy operations console is a browser app. In May and June 2026 I took its HTTP client, axios, from 1.7.9 through several releases to 1.16.0, and its follow-redirects dependency with it. Going through the advisories on the way was a useful exercise, because not all of them meant the same thing for an app that only runs in a browser.

Three kinds of advisory

One that applies everywhere. CVE-2025-27152, fixed in 1.8.2: if code passes an absolute URL to an axios instance that has a baseURL, axios ignores the base and sends the request, headers and all, to the absolute URL. That can leak credentials to the wrong host. It affects browser use as well as Node. In a console that sends authenticated requests, that one matters.

Ones that only apply on a server. Some axios fixes, such as a denial-of-service through very large data: URLs, are in its Node adapter. follow-redirects itself is only used by axios in Node; browsers handle redirects themselves. Its well-known bug, CVE-2024-28849, kept a proxy authorisation header when redirecting to another host. A browser bundle never runs that code.

Ones you patch anyway. Even when the code path isn’t reachable, scanners can’t tell. Every report lists it, every review asks about it, and every unpatched alert hides the next real one. Upgrading is usually cheaper than writing a justification.

What I learned

  • Check where the vulnerable code runs. Many npm packages have separate browser and Node code. An advisory in the Node half may not touch a frontend at all. That changes urgency, not whether you fix it.
  • Absolute URLs bypass baseURL. Even on a patched axios, the safest pattern is to never pass full URLs from data into a shared client. Build paths, not URLs.
  • Walk up in steps. Jumping from 1.7.9 to 1.16.0 in one go is possible, but going through releases one at a time made each change small enough to test, and made it obvious which release changed behaviour if something broke.
  • A clean alert list is a feature. The point of clearing low-risk alerts is that the next high-risk one stands out.
↑↓ move↵ openesc close