{"id":"MAL-2026-12810","summary":"Malicious code in the-search (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (6f7901c35765e01f25defe0c4d489b8f320340b45968e89b9dafe5821b7561fd)\nThe package's main entry ships a self-invoking browser payload that reads document.cookie, base64-encodes the value, and submits it via an auto-created hidden form POST to a hardcoded webhook.site endpoint (https://webhook.site/86b505ff-4280-459f-9b36-e765825c0ada). The package has no legitimate declared purpose consistent with this behavior; bundling this module into a web application causes visitor cookies to be sent to an attacker-controlled destination. The base64 wrapping around the JSON body is minor evasion to obscure the exfiltrated content in network logs.\n","modified":"2026-08-05T14:37:25.448321340Z","published":"2026-08-05T13:15:32Z","database_specific":{"malicious-packages-origins":[{"versions":["1.0.1"],"id":"IN-MAL-2026-014947","import_time":"2026-08-05T14:19:45.679925817Z","modified_time":"2026-08-05T13:15:40Z","sha256":"6f7901c35765e01f25defe0c4d489b8f320340b45968e89b9dafe5821b7561fd","source":"amazon-inspector"},{"versions":["1.0.0"],"id":"IN-MAL-2026-014946","import_time":"2026-08-05T14:19:45.592115024Z","modified_time":"2026-08-05T13:15:32Z","sha256":"9a4b610bdaa6b914afe9cd2c19527ab88a43c7d36e939b19e1f2bf4fc15583dc","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/the-search/v/1.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/the-search/v/1.0.0"}],"affected":[{"package":{"name":"the-search","ecosystem":"npm","purl":"pkg:npm/the-search"},"versions":["1.0.1","1.0.0"],"database_specific":{"indicators":{"evidence_files":[{"sha256":"d6b8f2abadf97fc9570a614c4ea169d44c9f6752b9e18f1862a1a6385c66be72","tlsh":"4b11b11e35b71270097b05cc61e39798fb641116b407cc5576ccc6da1f6cc5624f6b88","path":"exploit.js"}],"package_integrity":[{"filename":"the-search-1.0.1.tgz","hashes":{"sha512_sri":"sha512-Z8e0yXp8AvsdOpogEWVqQon5ZYsDuCruBygJnO2QSAL9FFacitONaP5QyLje2/WPGjZLfrkWEqVBXCsmUZ3gHA==","sha1":"47b18ddeafc966d7384b050da3d48293d10c379f"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/the-search/MAL-2026-12810.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}]}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}