patientdocuments (npm) · Malicious Code
Affects patientdocumentsSource GCVE Database
Malicious package : remove patientdocuments and rotate any secrets on hosts that installed it.
Data as of 15 Jul 2026, 12:53 UTC
Malicious package
Published to npm · OSV MAL-2026-5752
What to do
Remove patientdocuments 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
| Product | Affected | Fixed in |
|---|---|---|
| npmpatientdocuments | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The patientdocuments npm package version 75.0.0 contains malicious code that executes a preinstall script during npm install. This script sends the installer's OS username, current working directory, and hostname to an attacker-controlled endpoint over unencrypted HTTP. The package does not provide any legitimate functionality and is designed solely for reconnaissance and identity exfiltration. The package sets unsafe-perm, allowing the script to run with elevated privileges, increasing the risk of system compromise. Removal of the package does not guarantee full remediation as the system may already be fully compromised.