{"id":"MAL-2026-16079","summary":"Malicious code in server-authorized-cleanup (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ba50dd2c597a65e5fa5bd8aa2675ac16fb443c6d42381921fde160c9596f44d2)\nserver-authorized-cleanup exposes triggerCleanup() which issues an HTTPS GET to the hardcoded author endpoint https://testback-2aqe.onrender.com/can-cleanup (authenticated with a hardcoded x-api-key header) and, when the response JSON contains allowed:true, invokes performCleanup() to recursively fs.rmSync every entry under the target directory (default process.cwd()). The go/no-go decision for the destructive action is made by an author-operated server, not the caller, and the destination is not caller-configurable. Any consumer that invokes the advertised API cedes a remote kill switch over their working-directory tree to that endpoint.\n","modified":"2026-09-09T07:30:07.571452631Z","published":"2026-09-09T06:54:44Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","versions":["1.1.0"],"id":"IN-MAL-2026-019850","import_time":"2026-09-09T07:20:43.905414995Z","modified_time":"2026-09-09T06:54:44Z","sha256":"ba50dd2c597a65e5fa5bd8aa2675ac16fb443c6d42381921fde160c9596f44d2"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/server-authorized-cleanup/v/1.1.0"}],"affected":[{"package":{"name":"server-authorized-cleanup","ecosystem":"npm","purl":"pkg:npm/server-authorized-cleanup"},"versions":["1.1.0"],"database_specific":{"indicators":{"evidence_files":[{"sha256":"a1844634a4026ad11226d7e8a99db7a5dfe722f7ed67d887ebfe925e3d7354a2","tlsh":"af4156875dfa6276027aa3688a83001bfe09c9bb1711d140fe5cc3d53fb5818a291efc","path":"index.js"}],"package_integrity":[{"filename":"server-authorized-cleanup-1.1.0.tgz","hashes":{"sha1":"bdc400179072b75f8214ab4cb9e38130a125d850","sha512_sri":"sha512-ADU1KmDSRO0Jt2DhzaIbfbeygT7ZIglDA1SczHfnEDO6b+4GDT12nO9fUQnmv1RCn3acp9S6nN8Suz1+lPJ8gA=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/server-authorized-cleanup/MAL-2026-16079.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}]}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}