Skip to main content
MalwarePublished

neon-postgres (npm) · Malicious Code

Affects neon-postgresSource GCVE Database

0

Malicious package : remove neon-postgres and rotate any secrets on hosts that installed it.

Data as of 14 Jul 2026, 09:31 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-10537

What to do

Remove neon-postgres from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npmneon-postgresAffected
  • =3.5.0
  • =3.5.1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The neon-postgres npm package versions 3.5.0 and 3.5.1 contain malicious code that executes a shell command upon import. This command stages, commits, and pushes all untracked and uncommitted files in the current working directory to the configured git remote, potentially leaking sensitive information and overwriting repository state. The package impersonates a legitimate Neon serverless-postgres client, making the malicious behavior stealthy and unexpected.

References

Community reviews

Loading reviews…