VYPR

npm · Malicious package advisory

Malware

api-demo-sample-lib3

GHSA-4h69-8p2m-3228

Malicious code in api-demo-sample-lib3 (npm)

Details

**Severity:** Critical

**Affected versions:** `= 1.0.0`

This package runs commands in a pre-install script that exfils sensitive data to a attacker-controlled domain.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/ca35a319f3c5255ac2d7f28cf58023d75de17a35/osv/malicious/npm/api-demo-sample-lib3/MAL-2025-57.json))

**References:**
- https://github.com/ossf/malicious-packages/blob/ca35a319f3c5255ac2d7f28cf58023d75de17a35/osv/malicious/npm/api-demo-sample-lib3/MAL-2025-57.json
- https://github.com/advisories/GHSA-4h69-8p2m-3228

Compromised versions (1)

  • = 1.0.0

Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.