{"id":"MAL-2026-20188","summary":"Malicious code in @basis-theory-elements/api-client (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f84e5b8dd56ced8cdd78e5d5f3b4498111ebcb490cb6e6572674766ab0193dd3)\nPackage @basis-theory-elements/api-client@99.9.1 declares its sole dependency as an HTTPS tarball URL (`\"ltidisafe\": \"https://ltidi.storage.googleapis.com/depenconf/ltidisafe-4.0.9.tgz\"`) rather than a registry version range. On `npm install`, npm fetches whatever bytes that URL currently serves and runs any lifecycle scripts contained in that tarball, with no version pin, no integrity hash, and no publisher-match check. The shipped index.js is an empty stub, so dependency resolution is the package's entire on-install effect. The package name shadows the `@basis-theory` vendor scope, and the 99.9.1 version is implausibly high for the name — the shape associated with dependency-confusion resolution attacks against internal `@basis-theory-elements/*` packages.\n","modified":"2026-11-19T07:15:09.048278218Z","published":"2026-11-19T07:03:48Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-022884","import_time":"2026-11-19T07:12:44.644322701Z","modified_time":"2026-11-19T07:03:48Z","sha256":"f84e5b8dd56ced8cdd78e5d5f3b4498111ebcb490cb6e6572674766ab0193dd3","source":"amazon-inspector","versions":["99.9.1"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@basis-theory-elements/api-client/v/99.9.1"}],"affected":[{"package":{"name":"@basis-theory-elements/api-client","ecosystem":"npm","purl":"pkg:npm/%40basis-theory-elements/api-client"},"versions":["99.9.1"],"database_specific":{"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"evidence_files":[{"sha256":"be6134a9d7c4118dd825a38393cfbd5ac9f80f14e1dcba88efabb07df5133dea","tlsh":"7ce07d20452059330ec502b2882b554bf371ce5f1809bc0c5fdb041c58ada7378f935c","path":"package.json"}],"package_integrity":[{"filename":"api-client-99.9.1.tgz","hashes":{"sha1":"be9395eee41aba7f507e9827e27608bab6c7f1c5","sha512_sri":"sha512-Zk97VNBIuJTAu7cBNsGaCg1KznrShqDP6fCff88j/jq6zDmQ0mPGe0/vXqYgpp1Ksw+IO/U2bVwInZ9IwXkfhw=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@basis-theory-elements/api-client/MAL-2026-20188.json"}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}