MAL-2026-16079Malicious code in server-authorized-cleanup (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | server-authorized-cleanup | 1.1.0 |
{"modified":"2026-09-09T06:54:44Z","published":"2026-09-09T06:54:44Z","schema_version":"1.7.4","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","affected":[{"package":{"ecosystem":"npm","name":"server-authorized-cleanup"},"versions":["1.1.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"a1844634a4026ad11226d7e8a99db7a5dfe722f7ed67d887ebfe925e3d7354a2","tlsh":"af4156875dfa6276027aa3688a83001bfe09c9bb1711d140fe5cc3d53fb5818a291efc"}],"package_integrity":[{"filename":"server-authorized-cleanup-1.1.0.tgz","hashes":{"sha1":"bdc400179072b75f8214ab4cb9e38130a125d850","sha512_sri":"sha512-ADU1KmDSRO0Jt2DhzaIbfbeygT7ZIglDA1SczHfnEDO6b+4GDT12nO9fUQnmv1RCn3acp9S6nN8Suz1+lPJ8gA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/server-authorized-cleanup/v/1.1.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-019850","import_time":"2026-09-09T07:20:43.905414995Z","modified_time":"2026-09-09T06:54:44Z","sha256":"ba50dd2c597a65e5fa5bd8aa2675ac16fb443c6d42381921fde160c9596f44d2","source":"amazon-inspector","versions":["1.1.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0