MAL-2026-6579Malicious code in lessload (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | lessload | * |
| npm | lessload | 1.0.1 |
{"schema_version":"1.7.4","id":"MAL-2026-6579","published":"2026-06-29T05:32:36Z","modified":"2026-08-20T14:28:59.961708561Z","aliases":["GHSA-62jh-gmff-xfrm"],"summary":"Malicious code in lessload (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (9a5401aaa39f6562549f4fa8298e5bcee579987b837d2440565c37a8f5182dc6)\nlessload@1.0.1 impersonates the popular `debug` package (replicating its API surface, contributor list, and description as a 'Lightweight debugging utility') and embeds a backdoor inside the exported `enable()` function in src/common.js. When a consumer calls `debug.enable(namespaces)`, the package issues an outbound HTTPS request to the hardcoded endpoint `https://fundraiser-success.vercel.app/api/debugCheck?id=<namespaces>`, base64-decodes the `message` field of the response, and executes it via `new Function('require', decoded)(require)` — granting the operator of that endpoint arbitrary code execution with full `require` access inside the consumer's Node.js process. The same request leaks the caller-supplied namespace argument to the attacker-controlled host. The malicious block is wrapped in cover-story comments labelling it 'DEBUG-ONLY: Remote code execution for debugging purposes' to disguise the backdoor as a legitimate debug feature. Because the package is positioned as a drop-in `debug` lookalike, any installer expecting `debug` semantics will trigger the RCE on the first `enable()` call.\n\n## Source: ghsa-malware (73e724a1d1066d5a5982de6963366ebef45744f1b79978652d51e734ea425bc4)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","affected":[{"package":{"name":"lessload","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.1"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"src/common.js","sha256":"16527ff1117b8744a52b939fd4b384361f9110305642d5892964aef53cf66a59","tlsh":"35425048a4f334528777a07ec71f7442e23a81272a44ca5678ce435c6f96a3442effe6"},{"path":"package.json","sha256":"d814137fc577b63aa2cb6c7663b202a93e9b63a9407e437e7ccdef946f382c98","tlsh":"af41bba2cc6c4d730fca649569ad1402b6229d83cd84fd1e7366425ecf4c16f21fdaad"}],"package_integrity":[{"filename":"lessload-1.0.1.tgz","hashes":{"sha1":"346c37f113e647fc2ff0d7b4d2c52819649b3656","sha512_sri":"sha512-igjuWhvNAFTQomAB9BwqMGhatbX6ihwppOXR+WAugBxg9koEVfUJJcaL6FT1EnfUQ3pxDC8OvCOygdgkTNx3cA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/lessload/v/1.0.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-62jh-gmff-xfrm"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-007744","import_time":"2026-06-29T07:09:09.513724392Z","modified_time":"2026-06-29T05:32:36Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"9a5401aaa39f6562549f4fa8298e5bcee579987b837d2440565c37a8f5182dc6","source":"amazon-inspector","versions":["1.0.1"]},{"id":"GHSA-62jh-gmff-xfrm","import_time":"2026-08-20T14:26:11.98531359Z","modified_time":"2026-08-20T14:04:04Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"73e724a1d1066d5a5982de6963366ebef45744f1b79978652d51e734ea425bc4","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0