{"id":"MAL-2026-20498","aliases":[],"title":"Malicious code in @xokodon430/jsclamp (npm)","originalDescription":" --- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (fb7577f8caa11c1f83a285b9542bd8f84c5cd02a695f5f06b037c3c673ea1b1f) The package is advertised as a one-line numeric clamp utility but ships a preinstall lifecycle hook (`node setup.js`) that, on `npm install`, fetches bytes from https://pastebin.com/raw/z6K1Rg8J and https://calcal.ru/p/t5edjvR/raw (first-successful wins), writes them to a random path under the OS tmpdir, and passes the resulting file to a `run()` function. The destinations are author-mutable paste hosts unrelated to the package's stated publisher, and the content is unpinned and unverified. In version 1.0.2 the `run()` function is an empty stub so the fetched bytes are not executed, but the full dropper scaffolding — preinstall trigger, dual-source fetch with failover, staging under tmpdir, handoff to a runner — is present and reachable. Error reporting is obfuscated: HTTP failures surface as `Error #<status*13579>` and `process.exit(1)`, concealing which remote host failed and masking that preinstall is reaching Pastebin/calcal.ru. None of this behavior is justified by a 7-line clamp utility. ","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[],"references":[{"url":"https://www.npmjs.com/package/@xokodon430/jsclamp/v/1.0.2","type":"package"},{"url":"https://osv.dev/vulnerability/MAL-2026-20433","type":"web"}],"sources":[{"name":"osv","at":"2026-11-26T06:21:08.016Z","url":"https://osv.dev/vulnerability/MAL-2026-20498","license":"CC-BY 4.0","firstSeenAt":"2026-11-24T17:23:36.025Z"}],"firstSeenAt":"2026-11-24T17:23:36.025Z","publishedAt":"2026-11-24T14:30:00.000Z","modifiedAt":"2026-11-26T06:00:04.297Z"}