{"id":"MAL-2026-6708","summary":"Malicious code in zyncmap (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3a65a1106fa2bab6eb0b5982b289665b4b96a6ad86769a867f6e62fb73663f77)\nzyncmap@0.0.0 advertises itself as an SVG sanitization/minification utility, but index.js exports an undocumented function getPlugin() that, when invoked, performs an HTTP GET against the anonymous paste host https://www.jsonkeeper.com/b/3P9BF and passes the response's `model` string field directly to eval(). Content at that paste URL is attacker-mutable, so any consumer that calls the exported getPlugin() executes arbitrary attacker-controlled JavaScript in the installer's Node.js process. The README and ~80% of index.js implement plausible SVG helpers as cover; the remote-fetch+eval export and a misleading `bearrtoken: \"logo\"` header are appended separately and not mentioned in package documentation. This is a backdoor: a hidden code path giving the publisher persistent remote code execution against any consumer who reaches the export.\n","modified":"2026-07-01T19:16:50.071014002Z","published":"2026-07-01T18:37:36Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-07-01T18:37:36Z","id":"IN-MAL-2026-007854","import_time":"2026-07-01T19:11:24.221428209Z","sha256":"251e5b6920fb8a9fdb59aba6c1b162ddd27f0b226c979e62fb43845fc0f5d9ae","source":"amazon-inspector","versions":["0.0.1"]},{"source":"amazon-inspector","id":"IN-MAL-2026-007855","sha256":"3a65a1106fa2bab6eb0b5982b289665b4b96a6ad86769a867f6e62fb73663f77","modified_time":"2026-07-01T18:37:50Z","import_time":"2026-07-01T19:11:24.334484479Z","versions":["0.0.0"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/zyncmap/v/0.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/zyncmap/v/0.0.0"}],"affected":[{"package":{"name":"zyncmap","ecosystem":"npm","purl":"pkg:npm/zyncmap"},"versions":["0.0.1","0.0.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","name":"Embedded Malicious Code","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","name":"Embedded Malicious Code","description":"The product contains code that appears to be malicious in nature."}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/zyncmap/MAL-2026-6708.json","indicators":{"package_integrity":[{"filename":"zyncmap-0.0.1.tgz","hashes":{"sha512_sri":"sha512-JdWspee/JmuWG+lzapKOP8DNxMNY+o3miYDGvkVJawRNTw07p6oqzslJ8EsXe3LJQ39EkbaqBVeW5X9Q26NY7Q==","sha1":"01e3ae4582278f31842977da1cb1f00f9c231885"}}],"evidence_files":[{"tlsh":"767111a8999b7095d6b1e3e447135015f559d1672208c3d4b6acc6983f7172c90f3eec","path":"index.js","sha256":"3a0e1400a7ac8e8b984beef2f330af7a144b04723016ef07681ac0294a725444"}]}}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}