MAL-2026-16079

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/server-authorized-cleanup/MAL-2026-16079.json
JSON Data
https://api.test.osv.dev/v1/vulns/MAL-2026-16079
Published
2026-09-09T06:54:44Z
Modified
2026-09-09T07:30:07Z
Summary
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.

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"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / server-authorized-cleanup

Package

Name
server-authorized-cleanup
View open source insights on deps.dev
Purl
pkg:npm/server-authorized-cleanup

Affected ranges

Affected versions

1.*
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=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/server-authorized-cleanup/MAL-2026-16079.json"