{"schema_version":"1.9.0","id":"MAL-2026-18257","published":"2026-10-25T09:35:19Z","modified":"2026-10-26T06:45:16.085018271Z","aliases":["GHSA-j8vh-32vh-rj39"],"summary":"Malicious code in insta-api-wrapper (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (a09908a36abda4fcde37ed9dd87c26112044394f1775f742cd56ca16ec6e6cea)\nThe package wraps Instagram login/API operations and performs two installer-harming behaviors against a hardcoded author endpoint at reelsaver.appit-online.de. First, the exported getCookie() path takes the caller-supplied Instagram username and password, performs the login, and POSTs the username, plaintext password, and the full login response body (including session cookies and auth tokens) to https://reelsaver.appit-online.de/v2/insta/check. Second, LoginService.login and login2FA call a verifyAccount() routine that GETs a list of target users and post IDs from https://reelsaver.appit-online.de/v2/insta/verify and then uses the caller's just-obtained Instagram Authorization header to follow those users and like those posts via the package's own InstaService, with no disclosure or caller opt-in. A parallel BloksLoginService path pulls device-fingerprint parameters from /api/details on the same host and funnels the resulting Authorization token into the same follow/like driver. The destination host is not Instagram, so this is not credential reuse against the issuing service; it is credential capture plus covert use of the installer's authenticated session to boost accounts and posts selected by the author.\n\n## Source: ghsa-malware (6451b5d95d51aa4063e15551a18c1305088f92597bf3a7e47bd18472a81d9855)\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":"insta-api-wrapper","ecosystem":"npm","purl":"pkg:npm/insta-api-wrapper"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.1.0","1.2.1","1.1.4"],"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"},{"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":"lib/lib/handler.js","sha256":"3e856487b52550e1181da44f68f9c0bf055545587148062d802a8424a1b1ae87","tlsh":"3c51fd6974bb203a115620950a0b051228a0600725ddeca97fbda7376fcdc0f8af97cf"},{"path":"lib/lib/login.service.js","sha256":"961d28fc4906ece61fda9a111050ecd71cd80e17566903fbf2b5fe4e82f76ea8","tlsh":"daa11db10a9764107123e1dc9f1b1000a175b407784dd9a9fbbd735abfcd02c92a6bfa"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/insta-api-wrapper/MAL-2026-18257.json"}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-j8vh-32vh-rj39"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/insta-api-wrapper/v/1.1.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/insta-api-wrapper/v/1.2.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/insta-api-wrapper/v/1.1.4"}],"database_specific":{"malicious-packages-origins":[{"id":"GHSA-j8vh-32vh-rj39","import_time":"2026-10-25T10:23:49.747646834Z","modified_time":"2026-10-25T09:35:25Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"6451b5d95d51aa4063e15551a18c1305088f92597bf3a7e47bd18472a81d9855","source":"ghsa-malware"},{"id":"IN-MAL-2026-021763","import_time":"2026-10-26T06:39:41.051678897Z","modified_time":"2026-10-26T06:29:51Z","sha256":"a09908a36abda4fcde37ed9dd87c26112044394f1775f742cd56ca16ec6e6cea","source":"amazon-inspector","versions":["1.1.0"]},{"id":"IN-MAL-2026-021765","import_time":"2026-10-26T06:39:41.168311327Z","modified_time":"2026-10-26T06:30:06Z","sha256":"a230b5916db8912d3ed49d64fcddd875bb5eb3d9f9aa15e29d78991f2c157276","source":"amazon-inspector","versions":["1.2.1"]},{"id":"IN-MAL-2026-021764","import_time":"2026-10-26T06:39:41.111155874Z","modified_time":"2026-10-26T06:30:00Z","sha256":"ca9ef4b4af673f3f13d0f573ec7cda8558165cddce1ec308eab95861bf53faea","source":"amazon-inspector","versions":["1.1.4"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}