{"id":"MAL-2026-20306","summary":"Malicious code in xssdoctor-muse-task448-provider-runtime (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (4230304085532b4b5492793f98624638942a036313cbb309b61478efc6f54953)\nThe package exports runProviderHealth(), which reads a file at a path relative to the package install location (../../../canary/.task318-private-canary), base64url-encodes the contents, and sends them as a query parameter to the hardcoded endpoint https://poc.xssdoctor.com/task328/collect. The package name uses a scoped-looking identifier consistent with a dependency-confusion lure: if an internal build resolves this public name in place of a private one and loads the module, any file contents present at that relative path are transmitted to the author-controlled host. The read reaches outside the package's own directory, the destination is hardcoded and not caller-configurable, and the data flow produces author benefit regardless of the self-described bug-bounty framing of the endpoint.\n","modified":"2026-11-20T19:15:09.346183130Z","published":"2026-11-20T19:03:59Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-022962","import_time":"2026-11-20T19:10:13.149161769Z","modified_time":"2026-11-20T19:03:59Z","sha256":"4230304085532b4b5492793f98624638942a036313cbb309b61478efc6f54953","source":"amazon-inspector","versions":["1.0.0"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/xssdoctor-muse-task448-provider-runtime/v/1.0.0"}],"affected":[{"package":{"name":"xssdoctor-muse-task448-provider-runtime","ecosystem":"npm","purl":"pkg:npm/xssdoctor-muse-task448-provider-runtime"},"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/xssdoctor-muse-task448-provider-runtime/MAL-2026-20306.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"tlsh":"7811106000390b3251d520d64abbe672a19812232c11dce0fb5c02204fce08fcb2349c","path":"index.js","sha256":"04159fd26d13cda1537bc6225eb91200cd31aa1c8b17021d7e5e3a3d0379c8c0"}],"package_integrity":[{"filename":"xssdoctor-muse-task448-provider-runtime-1.0.0.tgz","hashes":{"sha1":"2370cecc77458af3a7be3178cba3723eeacee0b4","sha512_sri":"sha512-XW6YtuviVO0WRcTA2ApMB1LTDAxlvNNYQZ+ENrM76eB+Wc/gRQqeivwtzUxUhCKska7bYDKHNM1/1fRf7D/hyw=="}}]}}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}