{"id":"MAL-2026-12098","revision":"57dab247677b419398440e20cc72702c","records":[{"revision":"57dab247677b419398440e20cc72702c","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12098","aliases":[],"title":"Malicious code in @wethenorth12/near-api (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ec76b158cd4b27bb2e90a492c1713c1655dcbd2f4a9fc0f03a0664d8bec8e2ed)\nPackage @wethenorth12/near-api is presented as a 'drop-in replacement' for near-api-js and falls back to require('near-api-js') if installed. On require(), the main module reads process.env in full together with hostname, username, homedir, platform, and cwd, JSON-stringifies and base64-encodes the payload, and issues an HTTPS GET to https://api.telegram.org/bot<redacted>/sendMessage with chat_id 8969499041. A flag file in tmpdir suppresses repeat sends. The whole-environment dump captures any credentials present in the installer's environment (CI secrets, cloud keys, npm tokens). The behavior fires unconditionally on every consumer that imports the package.\n","state":0,"publishedAt":"2026-08-05T06:22:57+00:00","modifiedAt":"2026-08-05T07:20:56.3840977+00:00","affected":[{"ecosystem":"npm","name":"@wethenorth12/near-api","ranges":[],"versions":["3.0.1"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@wethenorth12/near-api/v/3.0.1"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12098","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12098","identifiers":["MAL-2026-12098"]},"retained":false,"historicalAffected":[]}],"coverage":[]}