ph-common (npm) · Malicious Code
Affects ph-commonSource GCVE Database
Malicious package : remove ph-common and rotate any secrets on hosts that installed it.
Data as of 25 Nov 2026, 11:47 UTC
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
| Product | Affected | Fixed in |
|---|---|---|
npmph-commonpkg:npm/ph-commonOther threats | 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 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
- npmjs.com/package/ph-common/v/1.1.0 (opens in a new tab)
- npmjs.com/package/ph-common/v/0.1.0 (opens in a new tab)
- npmjs.com/package/ph-common/v/1.0.0 (opens in a new tab)
- npmjs.com/package/ph-common/v/99.0.1 (opens in a new tab)
- npmjs.com/package/ph-common/v/2.0.1 (opens in a new tab)
- npmjs.com/package/ph-common/v/1.0.1 (opens in a new tab)
- npmjs.com/package/ph-common/v/3.0.0 (opens in a new tab)
- npmjs.com/package/ph-common/v/2.0.0 (opens in a new tab)
- npmjs.com/package/ph-common (opens in a new tab)
- github.com/advisories/GHSA-g6x8-wj65-55v2 (opens in a new tab)
- security.snyk.io/vuln/SNYK-JS-PHCOMMON-20554186 (opens in a new tab)