{"id":"MAL-2026-15550","summary":"Malicious code in common-array-token (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (bf8dc846e743e9517d8444feb25299ce05d9c6e060a050fdaa1b3b44a8cb5cbd)\npackage.json declares scripts.postinstall = 'node index.js'. On npm install, index.js reconstructs a URL from a String.fromCharCode numeric array (decoding to https://access-token-delta.vercel.app/), fetches JSON from that endpoint, and passes the returned 'token' field to eval(). Any JavaScript served by that endpoint executes on the installer's machine with the user's privileges at install time. The endpoint is hardcoded and controlled by the package author; the char-code obfuscation conceals the destination from plaintext scanning. There is no legitimate purpose served by fetching and eval'ing remote code from an obfuscated URL in a postinstall hook.\n","modified":"2026-08-29T02:30:11.876869446Z","published":"2026-08-29T02:14:47Z","database_specific":{"malicious-packages-origins":[{"sha256":"bf8dc846e743e9517d8444feb25299ce05d9c6e060a050fdaa1b3b44a8cb5cbd","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-019145","import_time":"2026-08-29T02:22:21.494281205Z","modified_time":"2026-08-29T02:14:47Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/common-array-token/v/1.0.0"}],"affected":[{"package":{"name":"common-array-token","ecosystem":"npm","purl":"pkg:npm/common-array-token"},"versions":["1.0.0"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"package_integrity":[{"hashes":{"sha1":"3340d13a4fb7e81e65f5bd327dd26537e9ca1f12","sha512_sri":"sha512-inmeLMcbv7k1zpeUoG9XaEDvZPSlqDKkOz0wV45ycrIkyHXihNdEIcpRAJFOwkMSIks9AoqUHxGMsxz9yL8Lbw=="},"filename":"common-array-token-1.0.0.tgz"}],"evidence_files":[{"path":"index.js","sha256":"e5c2f28ccd42f588a2cf725917589be397b5ed7a6319ce5bdca0ab026d4b65f7","tlsh":"e2f0279118bc4975023fe46a0a0f1816a508e313192de8c3b3cc4f442f198697d766c8"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/common-array-token/MAL-2026-15550.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}