Embedded Malicious Code Affecting pgserve package, versions >=1.1.11 <=1.1.14


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Attacked

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-PGSERVE-16119105
  • published22 Apr 2026
  • disclosed20 Apr 2026
  • creditStepSecurity

Introduced: 20 Apr 2026

New Malicious CVE NOT AVAILABLE CWE-506  (opens in a new tab)

How to fix?

Avoid using all malicious instances of the pgserve package.

Overview

pgserve is an Embedded PostgreSQL server with true concurrent connections - zero config, auto-provision databases

Affected versions of this package are vulnerable to Embedded Malicious Code that injects a credential-harvesting script that runs via postinstall on every npm install. It demonstrates supply-chain worm behaviour by re-injecting itself into every package which npm token it harvested, propagating the compromise further.

CVSS Base Scores

version 4.0
version 3.1