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
- Commit a lockfile and install with npm ci, so builds use known versions.
- Do not auto-update dependencies on every build; update on purpose and review.
- Wait a few days before adopting brand-new versions of popular packages; many compromises are caught quickly.
- Tell agents not to add packages without asking, and to explain why each one is needed.
- Build in a sandbox, not on the production server, and never with production secrets in the environment.
- 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.
