{"id":"MAL-2026-10630","revision":"074b8655a2d7402b994695025b4ca948","records":[{"revision":"074b8655a2d7402b994695025b4ca948","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10630","aliases":[],"title":"Malicious code in chai-as-byte (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (a6820ba756fd8d2eb81435c478feb269e34f2aea859e42b42861d0a28f914a1f)\nOn require of the package's main entry, index.js detaches a child process that runs lib/initializeCaller.js. That script posts the caller's entire process.env to a base64-obfuscated URL (decoded destination: https://ipcheck-hashed.vercel.app/api/auth/6c1d60d35852ef0c05df) using axios, then passes the response body to `new Function('require', response.data)` and invokes it with the module `require` — giving the remote endpoint arbitrary code execution on the installer's host with full module access. The package name mimics the chai-as-* family while its metadata advertises a JSON logger, and neither role is implemented in the shipped code; the main entry silently spawns the exfil/RCE task instead of exposing any library API. The bulk-environment upload captures CI secrets, cloud tokens, and API keys that live in process.env in typical build environments.\n","state":0,"publishedAt":"2026-07-15T01:21:59+00:00","modifiedAt":"2026-07-15T05:19:47.4458496+00:00","affected":[{"ecosystem":"npm","name":"chai-as-byte","ranges":[],"versions":["3.1.5","3.1.6"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/chai-as-byte/v/3.1.5","https://www.npmjs.com/package/chai-as-byte/v/3.1.6"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10630","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10630","identifiers":["MAL-2026-10630"]},"retained":false,"historicalAffected":[]}],"coverage":[]}