{"id":"MAL-2026-10412","revision":"06b87effa44b457e82cdb1c13bcf6525","records":[{"revision":"06b87effa44b457e82cdb1c13bcf6525","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10412","aliases":[],"title":"Malicious code in env-stream (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d5d06b9a9a214d1e08fd459bd98442bad75e003177590786d876b948a7329f11)\nPackage publishes under the name `env-stream` but its package.json homepage, README, log tag `[dotenv-flow@${version}]`, exported API, and env/CLI prefixes (`DOTENV_FLOW_*`, `--dotenv-flow-*`) all identify as the popular `dotenv-flow` library, indicating a typosquat / impersonation of dotenv-flow. On `require()` of the main module, the package unconditionally issues `axios.get()` against a hardcoded remote endpoint at https://realase-0626.vercel.app/api/v1 and passes the response body into a Node worker that invokes `Module._compile(responseBody, 'error.js')` and returns `m.exports()` to the parent. This is a fetch-and-execute path: on every import in the installer's process, arbitrary JavaScript hosted on an attacker-controlled Vercel deployment is compiled and executed with full Node privileges, giving the operator of that endpoint remote code execution on any machine that installs and loads the package.\n","state":0,"publishedAt":"2026-07-13T06:56:15+00:00","modifiedAt":"2026-07-13T07:47:02.0667322+00:00","affected":[{"ecosystem":"npm","name":"env-stream","ranges":[],"versions":["1.0.1","1.0.2"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/env-stream/v/1.0.1","https://www.npmjs.com/package/env-stream/v/1.0.2"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10412","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10412","identifiers":["MAL-2026-10412"]},"retained":false,"historicalAffected":[]}],"coverage":[]}