← 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.

New advisories, CVEs and fixes for Lovable, Bolt, v0, Replit, Base44 and Cursor apps. No roundups of things you already read.

Free. The list is new, so the first issues go out once there are readers. Unsubscribe from any email in one click. We never sell or share addresses.