Malicious code in px8my (npm)
--- _-= 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.
AI Analysis
Technical Summary
The px8my npm package's main script (px.js) is a browser-only payload that appends an iframe to the document body, redirecting users to a hardcoded external URL (https://mfmz.ywdyxn.cn/H.html?c=0gjr). The package lacks any legitimate API and fails if required in Node.js environments. It also contains an automation script (update_px8my.sh) that modifies the redirect domain, increments the patch version, publishes the package, and purges the CDN cache on jsDelivr to maintain the malicious redirect's effectiveness. This combination of features establishes px8my as a purpose-built malicious distribution vehicle abusing npm and jsDelivr infrastructure to deliver browser redirects to users of any site including this script.
Potential Impact
Users of websites that include the px8my package via CDN are forcibly redirected to an external URL controlled by the attacker. This can lead to exposure to further malicious content, phishing, or other harmful activities. The package does not provide legitimate functionality and is solely designed to hijack web pages. There is no indication of known exploits in the wild yet.
Mitigation Recommendations
No official patch or remediation is currently available. Users and maintainers should immediately remove the px8my package from their dependencies and any web pages that load it. Avoid including this package from any source, especially CDNs like jsDelivr. Monitor for any new vendor advisories or updates regarding this package for potential fixes or further guidance.
Malicious code in px8my (npm)
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.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The px8my npm package's main script (px.js) is a browser-only payload that appends an iframe to the document body, redirecting users to a hardcoded external URL (https://mfmz.ywdyxn.cn/H.html?c=0gjr). The package lacks any legitimate API and fails if required in Node.js environments. It also contains an automation script (update_px8my.sh) that modifies the redirect domain, increments the patch version, publishes the package, and purges the CDN cache on jsDelivr to maintain the malicious redirect's effectiveness. This combination of features establishes px8my as a purpose-built malicious distribution vehicle abusing npm and jsDelivr infrastructure to deliver browser redirects to users of any site including this script.
Potential Impact
Users of websites that include the px8my package via CDN are forcibly redirected to an external URL controlled by the attacker. This can lead to exposure to further malicious content, phishing, or other harmful activities. The package does not provide legitimate functionality and is solely designed to hijack web pages. There is no indication of known exploits in the wild yet.
Mitigation Recommendations
No official patch or remediation is currently available. Users and maintainers should immediately remove the px8my package from their dependencies and any web pages that load it. Avoid including this package from any source, especially CDNs like jsDelivr. Monitor for any new vendor advisories or updates regarding this package for potential fixes or further guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10104
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a50ba3c68715ace4357db01
Added to database: 07/10/2026, 09:24:12 UTC
Last enriched: 07/10/2026, 09:32:45 UTC
Last updated: 07/30/2026, 05:17:42 UTC
Views: 25
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.