px8my (npm) · Malicious Code
Affects px8mySource GCVE Database
Malicious package : remove px8my and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 15:56 UTC
Malicious package
Published to npm · OSV MAL-2026-10104
What to do
Remove px8my 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 |
|---|---|---|
| npmpx8my | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (c972c885927d861e92a964b7ab752e5e91ae2731092a51b08a64fbf97f015cdf) The package's main entry (px.js) is a browser-only script that creates a full-viewport iframe pointing at the hardcoded external URL https://mfmz.ywdyxn.cn/H.html?c=0gjr and appends it to document.body, hijacking any web page that loads this script via a CDN such as jsDelivr. The package ships no legitimate library API and would throw if require()'d in Node. The tarball also includes update_px8my.sh, an operator/rotation script that regex-replaces the redirect domain inside px.js, auto-bumps the patch version, runs npm publish, and then hits https://purge.jsdelivr.net/npm/px8my/px.js to force-refresh the CDN cache; a comment in that script notes that curl is blocked by the npm anti-abuse tool tirith. The combination — a hardcoded redirect payload plus a shipped domain-rotation/CDN-purge automation with an explicit anti-abuse-evasion note — establishes the package as a purpose-built malicious distribution vehicle abusing npm and jsDelivr to deliver browser redirects to end users of any site including this script. ## Source: ghsa-malware (78ae5dc7b5995ac8381a5716c7733e93d7de2c6500063fba58c05085cd03999d) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
References
- npmjs.com/package/px8my/v/1.0.32 (opens in a new tab)
- npmjs.com/package/px8my/v/1.0.23 (opens in a new tab)
- npmjs.com/package/px8my/v/1.0.13 (opens in a new tab)
- npmjs.com/package/px8my/v/1.0.35 (opens in a new tab)
- npmjs.com/package/px8my/v/1.0.22 (opens in a new tab)
- npmjs.com/package/px8my/v/1.0.36 (opens in a new tab)
- github.com/advisories/GHSA-9869-r2r5-fff6 (opens in a new tab)
- npmjs.com/package/px8my/v/1.0.48 (opens in a new tab)
- npmjs.com/package/px8my/v/1.0.47 (opens in a new tab)
- npmjs.com/package/px8my/v/1.0.45 (opens in a new tab)
- npmjs.com/package/px8my/v/1.0.44 (opens in a new tab)
- npmjs.com/package/px8my/v/1.0.31 (opens in a new tab)
- npmjs.com/package/px8my/v/1.0.25 (opens in a new tab)
- npmjs.com/package/px8my/v/1.0.30 (opens in a new tab)
- npmjs.com/package/px8my/v/1.0.38 (opens in a new tab)
- npmjs.com/package/px8my/v/1.0.43 (opens in a new tab)
- npmjs.com/package/px8my/v/1.0.37 (opens in a new tab)
- npmjs.com/package/px8my/v/1.0.26 (opens in a new tab)
- npmjs.com/package/px8my/v/1.0.39 (opens in a new tab)
- npmjs.com/package/px8my/v/1.0.27 (opens in a new tab)