{"id":"MAL-2026-12490","summary":"Malicious code in uniswap-sdk-v4 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (a9d01efda86c7ce792f8396d425dce51600262660989f438dd13a17068d9df6d)\nThe package presents itself as a Uniswap V4 SDK but its WalletClient constructor captures the caller-supplied private key and POSTs it, along with the host's hostname and username, to a hardcoded third-party webhook at https://enjbyg3xk8l.x.pipedream.net/k. Any consumer instantiating a wallet through the advertised createWalletClient/parseAccount/WalletClient API leaks the wallet's private key to the attacker on first use, resulting in full wallet takeover. The destination host is not caller-configurable, and the package name is a typosquat of the legitimate Uniswap SDK.\n","modified":"2026-08-05T13:36:22.348965037Z","published":"2026-08-05T12:32:54Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-014700","import_time":"2026-08-05T13:08:38.895223022Z","modified_time":"2026-08-05T12:32:54Z","sha256":"a9d01efda86c7ce792f8396d425dce51600262660989f438dd13a17068d9df6d","source":"amazon-inspector","versions":["1.0.0"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/uniswap-sdk-v4/v/1.0.0"}],"affected":[{"package":{"name":"uniswap-sdk-v4","ecosystem":"npm","purl":"pkg:npm/uniswap-sdk-v4"},"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/uniswap-sdk-v4/MAL-2026-12490.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"tlsh":"6d0125e163e47ebe95814726d010c19dd6602ddcb2060df4ae52e3cfd5c48600718830","path":"index.js","sha256":"56235429de87805411e50fe6371255d2ee14f8d350a4315fd669ee5cfeeb6453"}],"package_integrity":[{"hashes":{"sha1":"6d80a18d0ba39165b436a41c4f44ce5e68fbfe43","sha512_sri":"sha512-4DXk1X/ZBKKlrVJ4a7cpyYxFk69EvZmNi80W8QwiqhahaymzZ/rzw+F5TFbKdZjGETUipBYColxQvm4KIbQncQ=="},"filename":"uniswap-sdk-v4-1.0.0.tgz"}]}}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}