# GHSA-G6X8-WJ65-55V2: Malicious code in ph-common (npm)

- Database: GitHub
- Malicious package: yes
- Published: 2026-10-05
- Modified: 2026-10-06

## Affected versions

- ph-common (npm): 77.7.7
- ph-common (npm): 1.1.0
- ph-common (npm): 0.1.0
- ph-common (npm): 1.0.0
- ph-common (npm): 99.0.1
- ph-common (npm): 2.0.1
- ph-common (npm): 1.0.1
- ph-common (npm): 3.0.0
- ph-common (npm): 2.0.0

## Description

## Source: amazon-inspector (f82053e651a1ec7ee7cdf8ecd57ca4be012f7ce8d60dec081f99c2b80cb66bf2)
The package is a stub whose index.js exports a Proxy returning no-op functions for every property access, so consumers that import it receive a non-functional module. The only functional code is beacon.cjs, which POSTs the installer's hostname, install path (__dirname), cwd, and Node version as JSON to the hardcoded bare-IP plain-HTTP endpoint http://185.158.107.175:8787/_ah/dc. The beacon fires both from the package.json postinstall lifecycle hook (`node beacon.cjs`) and at import time via a top-level `require('./beacon.cjs').fire()` in index.js. The destination is unrelated to any publisher infrastructure, uses a bare IP over cleartext HTTP, and the comments framing the payload as 'only machine/package metadata' do not change that unsolicited host identifiers are being sent off-host on install and on require. The stub-plus-beacon shape is consistent with a dependency-confusion or name-squat reconnaissance probe.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/28e8e300c79177f2cb1eb131ae981c3c0e639495/osv/malicious/npm/ph-common/MAL-2026-1809.json))

## References

- https://github.com/ossf/malicious-packages/blob/28e8e300c79177f2cb1eb131ae981c3c0e639495/osv/malicious/npm/ph-common/MAL-2026-1809.json
- https://www.npmjs.com/package/ph-common/v/0.1.0
- https://www.npmjs.com/package/ph-common/v/1.0.0
- https://www.npmjs.com/package/ph-common/v/1.0.1
- https://www.npmjs.com/package/ph-common/v/1.1.0
- https://www.npmjs.com/package/ph-common/v/2.0.0
- https://www.npmjs.com/package/ph-common/v/2.0.1
- https://www.npmjs.com/package/ph-common/v/3.0.0
- https://www.npmjs.com/package/ph-common/v/99.0.1
- https://github.com/ossf/malicious-packages/blob/79037c7758992d74092bc6d0fe497b7afd304361/osv/malicious/npm/ph-common/MAL-2026-1809.json
- https://www.npmjs.com/package/ph-common
- https://github.com/advisories/GHSA-g6x8-wj65-55v2

Page: https://cve.now/GHSA-G6X8-WJ65-55V2

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
