← All advisories

VV-012highSupply chain2025

Slopsquatting: AI suggests packages that don’t exist

A USENIX Security 2025 study found 19.7% of 2.23 million package suggestions from 16 code models were hallucinated. Attackers can register those names.

01.

What it is

The study found 205,474 unique non-existent package names. Commercial models averaged about 5.2%, open-source models 21.7%; JavaScript (21.3%) was worse than Python (15.8%). The paper names Cursor among widely used coding tools.

02.

How to check

  1. Before installing, confirm each new dependency exists, has history, downloads and a real repo.
03.

How to fix

  1. Pin dependencies with a lockfile, review new packages in PRs, and avoid installing names you have never heard of.
# Inspect a package before installing it
npm view <package-name> name version time.created repository.url
npm install --save-exact <package-name>
04.

Sources

More advisories for this tool
The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.