{"id":"MAL-2026-12017","summary":"Malicious code in @keyv/mongo (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b54da8d83c19dc23fe163d7e333f4529faa01d322fe272066da4964fcf604469)\n@keyv/mongo is the MongoDB storage adapter for the keyv key-value library. No a static rule matched and no behavioral findings were produced against this version's contents. No lifecycle scripts fetching or executing remote code, no credential or filesystem reads targeting installer secrets, no hardcoded non-first-party network destinations, and no obfuscated payloads were observed.\n\n## Source: ghsa-malware (5a31cfa00db5609eb8dea14b12e50bf7bf4354eba2990b524805c7da863bc97a)\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","aliases":["GHSA-h8h5-wqhj-grm7"],"modified":"2026-08-05T10:05:29.709659270Z","published":"2026-08-04T13:03:51Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-08-04T13:03:52Z","sha256":"5a31cfa00db5609eb8dea14b12e50bf7bf4354eba2990b524805c7da863bc97a","source":"ghsa-malware","versions":["6.0.0"],"id":"GHSA-h8h5-wqhj-grm7","import_time":"2026-08-05T00:10:18.092852399Z"},{"sha256":"b54da8d83c19dc23fe163d7e333f4529faa01d322fe272066da4964fcf604469","source":"amazon-inspector","versions":["6.0.0"],"id":"IN-MAL-2026-014269","import_time":"2026-08-05T09:27:49.995242874Z","modified_time":"2026-08-05T08:25:55Z"}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-h8h5-wqhj-grm7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@keyv/mongo/v/6.0.0"}],"affected":[{"package":{"name":"@keyv/mongo","ecosystem":"npm","purl":"pkg:npm/%40keyv/mongo"},"versions":["6.0.0"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","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."}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@keyv/mongo/MAL-2026-12017.json","indicators":{"package_integrity":[{"hashes":{"sha512_sri":"sha512-mpILKdlPHWYOIYRx3HRjWpLtVtjRGgvV7xMv0OJvpfVmpWho/bEjDbmffpVQg792OkE7Og6C8bdmuURdHGhaLA==","sha1":"4b915f9e159946451a45392d93ac895a6f299b4e"},"filename":"mongo-6.0.0.tgz"}]}}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}