Malicious code in server-authorized-cleanup (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-16079
Published--- _-= 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.
- Source published
- 9 Sep 2026 06:54:44 UTC
- Source modified
- 9 Sep 2026 07:30:05 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.