Opens in a new tab

Independent WordPress hosting guides · Recommended host: Convesio

Start a free trial →

Supply-Chain Attacks and Your WordPress Build Tools

The widely used axios package was compromised for three hours. If your theme or plugin build uses npm, and AI agents install packages for you, here is how to reduce the risk.
By Shahzad Hasan · November 18, 2026

On 31 March 2026 a state-backed group compromised axios, a JavaScript package with over 100 million weekly downloads, for about three hours, injecting a remote access trojan. Projects that installed or updated it in that window were exposed. Vibe Coding Weekly noted that AI agents which scaffold projects with npm dependencies are a fresh target for this kind of attack (Vibe Coding Weekly #27).

Figures and claims about other companies are as reported at the time and summarised by Vibe Coding Weekly; check the original announcement before relying on them.

Where WordPress meets npm

  • Block themes and custom blocks built with @wordpress/scripts.
  • Plugins with JavaScript build steps.
  • Tailwind, Sass or bundlers in a theme.
  • Tools an AI agent installs “to help” during a session.

Reduce the risk

  1. Commit a lockfile and install with npm ci, so builds use known versions.
  2. Do not auto-update dependencies on every build; update on purpose and review.
  3. Wait a few days before adopting brand-new versions of popular packages; many compromises are caught quickly.
  4. Tell agents not to add packages without asking, and to explain why each one is needed.
  5. Build in a sandbox, not on the production server, and never with production secrets in the environment.
  6. Ship only built files to the site, not node_modules.

If you suspect a bad package

  • Rotate keys and passwords that were present on the build machine.
  • Rebuild from a clean lockfile.
  • Check your host’s logs for unusual outbound connections.

More in Security for vibe coders.

Source: Vibe Coding Weekly #27. This article is our own take for WordPress and Bricks builders; it does not reproduce the newsletter.

In this article

Need hosting that scales?

Convesio runs each site in Docker containers with auto scaling and load balancing built in.
Try Convesio free →
Affiliate link: we may earn a commission at no extra cost to you.