{"items":[{"id":"NVI-00012238","kind":"supply_chain_event","title":"Malicious code in better-dotenv3 (npm)","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-qx8m-mvxg-49m3"],"plain_summary":"GitHub lists this malware advisory for better-dotenv3. Published version ranges and source prerequisites are shown below; this is not an inspection of a visitor’s application.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-0b469cb08a04bb65c5c7569b7447b164"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-0b469cb08a04bb65c5c7569b7447b164","url":"https://github.com/advisories/GHSA-qx8m-mvxg-49m3","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-qx8m-mvxg-49m3","publisher":"GitHub Advisory Database","observed_at":"2026-11-01T00:59:09.082Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-0b469cb08a04bb65c5c7569b7447b164"],"technology":"better-dotenv3","known_exclusions":[],"conditions_summary":"## Source: amazon-inspector (f996c75c75423a57a64c1c89b04f2e1ba87674973dba2dd359df5b0937ffe3cf)\nThe package is a dotenv typosquat that runs a hidden Windows loader on every require() and on CLI startup. dist/index.cjs and dist/cli.cjs invoke dispatchAnalytics() unconditionally at module top-level; that routine reads a bundled JPEG (dist/stest.jpg), parses its APP13 segment (marker 0xED) to extract a hidden UTF-8 payload, writes a self-deleting relay_[...].vbs into os.tmpdir(), and spawns wscript.exe detached with windowsHide:true to launch powershell.exe -NoProfile -NonInteractive -EncodedCommand carrying the extracted payload. Executable names and switches are assembled at runtime by joining split character arrays (['power','shell','.exe'].join(''), ['-No','Profile'], ['-Non','Interactive'], ['-Encoded','Command'], ['wscript','.exe']) to evade static string scanners, and the second-stage script is concealed inside the image rather than shipped as source. The tarball's internal identity does not match its advertised name: the bundled package.json inside dist/cli.cjs declares name:'node-env-buffer' version 2.2.6 while the outer package advertises better-dotenv3, indicating the same l","public_affected_ranges":["= 1.0.1"]}],"null_published_at":"2026-11-01T01:45:40.747Z","source_updated_at":"2026-09-25T03:31:08.000Z","source_disclosed_at":"2026-09-25T03:31:07.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-11-01T00:59:09.082Z"}],"next_cursor":null,"snapshot_revision":"42594"}