{"id":"MAL-2026-17777","summary":"Malicious code in react-paginate-v5 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (2c0f91fe35323a6f47033b90ebaf88498a36fd7e8e933711b2cf301dba2e4759)\nreact-paginate-v5@99.0.0 is a dependency-confusion probe published under a name resembling the popular react-paginate package and pinned to an implausibly high version (99.0.0) to win resolution against an internal package. Its package.json declares a preinstall lifecycle script that runs `nslookup dep-confusion-poc.2chsn9exkdupkr3cxed7vp7sk.canarytokens.com`, which fires automatically on `npm install` and emits a DNS query from the installer's resolver to an attacker/researcher-controlled canary subdomain. The subdomain label (`dep-confusion-poc`) self-identifies the operation as a dependency-confusion test. The DNS lookup confirms successful installation to the operator of the canary token, identifying hosts and networks where an internal package name was shadowed by this public squat. While the beacon itself only exfiltrates the fact of installation plus resolver metadata, the same install-time execution primitive can carry any shell command, and the package has no legitimate functionality.\n","modified":"2026-10-11T14:30:09.173125481Z","published":"2026-10-11T13:58:11Z","database_specific":{"malicious-packages-origins":[{"sha256":"2c0f91fe35323a6f47033b90ebaf88498a36fd7e8e933711b2cf301dba2e4759","source":"amazon-inspector","versions":["99.0.0"],"id":"IN-MAL-2026-021429","import_time":"2026-10-11T14:18:04.861546546Z","modified_time":"2026-10-11T13:58:11Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/react-paginate-v5/v/99.0.0"}],"affected":[{"package":{"name":"react-paginate-v5","ecosystem":"npm","purl":"pkg:npm/react-paginate-v5"},"versions":["99.0.0"],"database_specific":{"indicators":{"evidence_files":[{"sha256":"e4ddadc2953f2675846dc3eb28ff1a9f106ddb9202ab6bdef575a8ba8201b32f","tlsh":"3ae07d34ac21583319f982f70872550716b3dc6a9019bd0ea75ba00ce5ceeb3937b148","path":"package.json"}],"package_integrity":[{"hashes":{"sha1":"cfdcb7e56ec646f42f229f7eed0a0e3099e6180b","sha512_sri":"sha512-miYSw1WOeIy/dXd+24lX0KfQ1+eEqzyoEKHM+LN5YFQ0ZclyLcsQlfQNHZHePIje19XPBXGjx35Muf/vgRs17Q=="},"filename":"react-paginate-v5-99.0.0.tgz"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/react-paginate-v5/MAL-2026-17777.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}]}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}