GHSA-7v9w-pmg3-8ww9
Malicious code in @dransay/logger (npm)
Impact
## Source: amazon-inspector (5d4cbd17edce3b0c45619c9af869321807357e3dae1af8aa94835d3143185e85) The package @dransay/logger@99.0.0 ships a preinstall hook (`node beacon.js`) that fires on `npm install`. The script performs a DNS lookup and HTTPS GET to the interactsh collaborator host `db3klhbi6i9hark1kegg174t38h33b6wt.oast.site`, encoding the package name in the subdomain/path. The version number (99.0.0) is implausibly high for a package with no release history, consistent with a dependency-confusion squat intended to win semver resolution against a private internal name. On install, the beacon discloses the installer's source IP, DNS resolver, and timestamp to a third-party host under the scoped name `@dransay/logger`, confirming successful resolution of this public package in an environment that may have intended to resolve a private `@dransay/*` package. No further payload is executed in this version, but the install-time callback to an attacker-controlled OAST endpoint is the reconnaissance stage of a dependency-confusion attack. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/9a4a2fcaa6660f0629db18ac4d5f91ef22114372/osv/malicious/npm/@dransay/logger/MAL-2026-17697.json))
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | @dransay/logger | = 99.0.0 | none recorded |
Weakness classification
References
- GitHub advisory
- https://github.com/advisories/GHSA-7v9w-pmg3-8ww9
- https://github.com/ossf/malicious-packages/blob/9a4a2fcaa6660f0629db18ac4d5f91ef22114372/osv/malicious/npm/@dransay/logger/MAL-2026-17697.json
- https://www.npmjs.com/package/@dransay/logger/v/99.0.0
- https://github.com/ossf/malicious-packages/blob/f6c455a8a06fc0b0bb8fa03ae573386aa46cc5b6/osv/malicious/npm/@dransay/logger/MAL-2026-17697.json
- https://www.npmjs.com/package/@dransay/logger