{"id":"GHSA-8m87-xx52-4rjw","revision":null,"records":[{"revision":"db64a2fe6d5245309ff8b1447a2f0fb2","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-14529","aliases":["GHSA-8m87-xx52-4rjw"],"title":"Malicious code in baileys-mbuilder (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (508ded2b926100712d9abf255683432d44a917c067f9d69b14b4c678918ce8bb)\npackage.json declares `\"postinstall\": \"node lib/index.js --install\"`, and lib/index.js is a single ~6.3 MB JSFuck-style eval() expression that reconstructs its source character-by-character from boolean/array coercions and %-unescape. The same file is the package's `main`, and lib/index.mjs re-requires it, so both `npm install` and any subsequent `require`/`import` of the package execute the obfuscated payload. The README documents that the postinstall step downloads MessageBuilder.js from a remote repository and that `MB.enableAutoUpdate(ms, cb)` periodically re-fetches remote JavaScript, hash-compares it, and on mismatch dynamic-`import()`s the new module, rebinding the default export via a Proxy so consumers transparently run the newly fetched code. The fetch destination, pinning, and any integrity checks are hidden inside the JSFuck blob and are not visible to static review. The obfuscation scale (6 MB of JSFuck for a message-builder library) has no legitimate purpose and defeats scanner and reviewer inspection of what actually executes on installer machines.\n\n## Source: ghsa-malware (396af19b57be005328e2697ade736320c214b8f997f5deca03911df68b4c7e63)\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-08-26T13:28:03+00:00","modifiedAt":"2026-09-04T02:00:04.7293731+00:00","affected":[{"ecosystem":"npm","name":"baileys-mbuilder","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":["4.7.0-lts","4.5.0-cjs","4.5.0-lts","4.5.3-cjs","4.5.0","4.5.0-beta","4.5.0-custom","4.5.2-cjs","4.6.0-lts","4.5.1-cjs"],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/advisories/GHSA-8m87-xx52-4rjw","https://www.npmjs.com/package/baileys-mbuilder/v/4.7.0-lts","https://www.npmjs.com/package/baileys-mbuilder/v/4.5.0-cjs","https://www.npmjs.com/package/baileys-mbuilder/v/4.5.0-lts","https://www.npmjs.com/package/baileys-mbuilder/v/4.5.3-cjs","https://www.npmjs.com/package/baileys-mbuilder/v/4.5.0","https://www.npmjs.com/package/baileys-mbuilder/v/4.5.0-beta","https://www.npmjs.com/package/baileys-mbuilder/v/4.5.0-custom","https://www.npmjs.com/package/baileys-mbuilder/v/4.5.2-cjs","https://www.npmjs.com/package/baileys-mbuilder/v/4.6.0-lts","https://www.npmjs.com/package/baileys-mbuilder/v/4.5.1-cjs"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-14529","license":"OSV · upstream source license applies","key":"osv:MAL-2026-14529","identifiers":["MAL-2026-14529","GHSA-8m87-xx52-4rjw"]},"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-19T16:01:32.3378751+00:00","complete":true,"records":1786,"lastAttemptAt":"2026-11-19T16:01:32.3378751+00:00","lastSuccessAt":"2026-11-19T16:01:32.5150383+00:00","error":null,"lastVerifiedAt":"2026-11-19T16:01:32.5150392+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-904a496cfc2893b6972fc00fe6b94b8c15ebc7e7734e22a279b080b306ca2c5a","complete":true,"records":428801,"lastAttemptAt":"2026-11-19T15:59:46.3350418+00:00","lastSuccessAt":"2026-11-19T15:59:46.1873259+00:00","error":null,"lastVerifiedAt":"2026-11-19T15:59:46.3350418+00:00","snapshotPublishedAt":"2026-11-19T15:24:49+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-e53296c82da446559c1ef13150a22992","complete":false,"records":13861,"lastAttemptAt":"2026-11-19T16:11:09.2714483+00:00","lastSuccessAt":"2026-11-19T16:11:09.268+00:00","error":"270 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-19T16:11:09.268+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13638,"expectedIdentifiers":13908,"failedIdentifiers":270},{"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-19T16:01:32.3378751+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-19T16:01:32.3378751+00:00","lastSuccessAt":"2026-11-19T16:01:32.5160974+00:00","error":null,"lastVerifiedAt":"2026-11-19T16:01:32.5160976+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-3d346fd985e841b1aac7f0b69a8e04b9","complete":true,"records":13873,"lastAttemptAt":"2026-11-19T16:01:33.1329967+00:00","lastSuccessAt":"2026-11-19T15:01:35.314+00:00","error":null,"lastVerifiedAt":"2026-11-19T15:01:35.314+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13908,"expectedIdentifiers":13908,"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-76574c95b6792d47ba90af64983ed5843633f14426346d676016e94a5f383202","complete":true,"records":9963,"lastAttemptAt":"2026-11-19T16:01:32.1967929+00:00","lastSuccessAt":"2026-11-19T01:24:31.4213722+00:00","error":null,"lastVerifiedAt":"2026-11-19T16:01:32.1967929+00:00","snapshotPublishedAt":"2026-11-19T01:03:15+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-19T15:59:46.4850134+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-19T15:59:46.4850134+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-313d8afdba3867de110bc2f0cc252c7b787cb94e08a055d09b0542017e147ca8","complete":true,"records":3194,"lastAttemptAt":"2026-11-19T16:01:32.2995638+00:00","lastSuccessAt":"2026-11-19T09:40:31.5988269+00:00","error":null,"lastVerifiedAt":"2026-11-19T16:01:32.2995638+00:00","snapshotPublishedAt":"2026-11-19T09:03:08+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-c279061b33e5f41f15925204f8c9fb11104b657e25ab9e8bb013c39c52fe29cb","complete":true,"records":232765,"lastAttemptAt":"2026-11-19T16:01:32.0667728+00:00","lastSuccessAt":"2026-11-19T16:01:31.0253043+00:00","error":null,"lastVerifiedAt":"2026-11-19T16:01:32.0667728+00:00","snapshotPublishedAt":"2026-11-19T15:33:25+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}