Skip to main content
MalwarePublished Updated

ph-common (npm) · Malicious Code

Affects ph-commonSource GCVE Database

0

Malicious package : remove ph-common and rotate any secrets on hosts that installed it.

Data as of 25 Nov 2026, 11:47 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-1809

What to do

Remove ph-common 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
npmph-commonpkg:npm/ph-commonOther threatsAffected
  • 0.1.0 – 99.0.1
9 affected builds
Fixed in–

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

Description

The ph-common npm package is a malicious dependency-confusion package that exfiltrates system metadata. It contains a postinstall script and runtime code that send the installer's hostname, install path, current working directory, and Node version in cleartext HTTP to a remote IP address. The package exports a Proxy that returns no-op functions, allowing builds importing it to continue without error while silently leaking information. This behavior is consistent with reconnaissance activity in supply chain attacks.

References

Community reviews

Loading reviews…