{"id":"MAL-2026-20275","summary":"Malicious code in xueoj-vjtof-util (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (6361a9939d5d4927d1ed0e68d74fc9173e377b0cd59b8734830c62e81fdb1a8e)\nindex.js (the declared main entry) reads an undocumented _bz byte array (195 bytes beginning with the zlib magic 0x78 0x9c) from package.json, zlib-inflates it, and executes the decoded string via the Function constructor at require() time, running with full Node privileges in any process that imports the package. Execution is gated by an explicit early return when any of CI, GITHUB_ACTIONS, GITLAB_CI, TRAVIS, CIRCLECI, or SANDBOX environment variables is set, and errors are swallowed by a try/catch, so the payload fires only in developer or production environments and stays silent under common analysis contexts. Smuggling the executable blob as a numeric byte array inside package.json rather than a.js file hides it from file-level review and from scanners that only inspect JavaScript sources. The package exports nothing useful and is described generically as a 'utility', providing no legitimate reason for this pattern.\n\n## Source: ghsa-malware (f33678f60adab8790527c4caf13ae874dbfc31c06492d0e96a564a8ccdeac181)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","aliases":["GHSA-4ffv-gw64-v99f"],"modified":"2026-11-20T02:30:08.881951136Z","published":"2026-11-20T00:59:58Z","database_specific":{"malicious-packages-origins":[{"ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"f33678f60adab8790527c4caf13ae874dbfc31c06492d0e96a564a8ccdeac181","source":"ghsa-malware","id":"GHSA-4ffv-gw64-v99f","import_time":"2026-11-20T01:17:45.878665435Z","modified_time":"2026-11-20T00:59:58Z"},{"versions":["1.0.0"],"id":"IN-MAL-2026-022914","import_time":"2026-11-20T02:16:22.831278083Z","modified_time":"2026-11-20T02:08:50Z","sha256":"6361a9939d5d4927d1ed0e68d74fc9173e377b0cd59b8734830c62e81fdb1a8e","source":"amazon-inspector"}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-4ffv-gw64-v99f"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/xueoj-vjtof-util/v/1.0.0"}],"affected":[{"package":{"name":"xueoj-vjtof-util","ecosystem":"npm","purl":"pkg:npm/xueoj-vjtof-util"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","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"}],"indicators":{"evidence_files":[{"sha256":"95618430decba4e2a9241dbc787a7f5aa0a688797e2f648212c7d263f3738ba2","tlsh":"88e0e54cb3b955185891db99a42dae0264f2bad60a958461a654b1832bb0b180b5241f","path":"index.js"},{"path":"package.json","sha256":"ae29cea031e426f089628c7241bb22fdabf471f03fb1d59e8ca8e5ffd068daa0","tlsh":"473145d31d0278d9b25ccd692469260140947c23ac56fd48716e49828fef56f2ffee2d"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/xueoj-vjtof-util/MAL-2026-20275.json"}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}