@xokodon430/jsclamp: malicious npm package ships preinstall dropper that fetches remote payloads (no CVE)
Severity: critical · Patch status: no-fix-needed · Since 2026-11-24
The npm package @xokodon430/jsclamp, advertised as a one-line numeric clamp utility, ships a preinstall lifecycle hook that runs node setup.js during npm install. The script fetches bytes from Pastebin and calcal.ru with first-successful failover, writes them to a random path under the OS tmpdir, and passes the file to a run() function. In version 1.0.2, run() is an empty stub, so the fetched bytes are not executed, but the full dropper scaffolding is present and reachable. HTTP errors are obfuscated as Error <status13579 and process.exit(1), concealing the remote hosts. No patched versions exist. Any environment that installed version 1.0.2 should be treated as potentially exposed and audited.
What to do
- Immediately remove @xokodon430/jsclamp@1.0.2 from dependencies and lockfiles, and block the package/version in registry proxies or allowlists.
- Search CI/build logs and npm install history for execution of the preinstall hook and outbound requests to pastebin.com/raw/z6K1Rg8J or calcal.ru/p/t5edjvR/raw; block those domains.
- Inspect tmpdirs and endpoint/network telemetry on hosts that installed the package for randomly named staged files or suspicious process activity.
- Rotate credentials and secrets for any build or runtime environment where the package was installed and suspicious activity is found.
- Rebuild and redeploy from clean lockfiles, then verify no transitive dependency reintroduces the package.
- Monitor GHSA-rmrx-rr64-7h8q for advisory updates.
Sources
All live incidents on Threat Watch