{"id":"MAL-2026-12359","revision":"c56486a7a1254b6a80640f0b3f6cbbf3","records":[{"revision":"c56486a7a1254b6a80640f0b3f6cbbf3","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12359","aliases":[],"title":"Malicious code in crypto-javas (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (75003e4aab1668c5d9b7f1216e6b356473ebb6e834da3a015e920807e8717ed9)\nThe package's postinstall hook runs setup.js, which enumerates process.env (excluding only a small OS blocklist for PATH/HOME/USER/SHELL/LANG), collects every remaining variable's value together with CI job metadata (CI_JOB_ID, GITHUB_RUN_ID, project, commit, branch, hostname), and HTTPS-POSTs the payload to a URL and API key read from BACKEND_URL/BACKEND_API_KEY, package.json.crypto-javas.backend,.crypto-config.json, or.env in the current working directory. The declared main entrypoint index.js additionally invokes autoExecute() at module top level, instantiating SecretsHandler.readFromEnvironment and sendToBackend so that every require/import of the package re-runs the same environment-variable harvest and POST. The behavior is undisclosed in the README, which presents the package as @wizlabs/js-crypto (a typosquat-style mismatch with the actual name crypto-javas); repository is the placeholder gitlab.com/example/js-crypto and author is a generic DevSecOps handle. In a CI runner this ships AWS_*, GITHUB_TOKEN, NPM_TOKEN, CI_JOB_TOKEN and any other pipeline secrets to an attacker-configurable backend.\n","state":0,"publishedAt":"2026-08-05T12:59:52+00:00","modifiedAt":"2026-08-19T04:30:10.9598835+00:00","affected":[{"ecosystem":"npm","name":"crypto-javas","ranges":[],"versions":["2.0.4","2.0.7","2.0.8","2.0.9","2.0.6"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/crypto-javas/v/2.0.4","https://www.npmjs.com/package/crypto-javas/v/2.0.7","https://www.npmjs.com/package/crypto-javas/v/2.0.8","https://www.npmjs.com/package/crypto-javas/v/2.0.9","https://www.npmjs.com/package/crypto-javas/v/2.0.6"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12359","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12359","identifiers":["MAL-2026-12359"]},"retained":false,"historicalAffected":[]}],"coverage":[]}