MAL-2026-16079
Malicious code in server-authorized-cleanup (npm)
Details
--- _-= Per source details. Do not edit below this line.=-_
## Source: amazon-inspector (ba50dd2c597a65e5fa5bd8aa2675ac16fb443c6d42381921fde160c9596f44d2) server-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.
Are you affected?
Enter the version of the package you're using.
Affected packages
No fixed version published yet for server-authorized-cleanup (npm). Pin to a known-safe version or switch to an alternative.