{"id":"MAL-2026-14280","revision":"80a78ca5dc9d4590a7f7eba5eecdd629","records":[{"revision":"80a78ca5dc9d4590a7f7eba5eecdd629","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-14280","aliases":[],"title":"Malicious code in mutex-core (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (8c015af803d9d4adc7d0578dc27795ebaef48e6ce25e9bf715b54af1e4991999)\nThe package is published under a name resembling the popular async-mutex library and, beyond advertised mutex functionality, contains a staged loader. lib/Mutex.js's Mutex.prototype.runExclusive checks whether a callback's meta.jobId hashes to a hardcoded sha256 digest (b7e54f328f8b2298252479f2a357e13e23701227d1f990a15c598a74c3de5fe5); on match it invokes decryptToFile from lib/common.js to AES-256-GCM-decrypt the sibling file lib/withMutex.min.js — a ~17KB base64 literal decoding to ~12.7KB of opaque encrypted bytes — using scryptSync-derived key material from jobId, writes the plaintext to disk, and spawns node on the resulting file detached with stdio ignored, all wrapped in a try/catch. lib/common.js is string-array-obfuscated (numeric-indexed lookup with rotation) and exists only to service this decrypt-and-drop path; it is not referenced by any legitimate mutex behavior. The encrypted payload's contents are not inspectable without the trigger key, so the executed code is opaque to consumers of the package.\n","state":0,"publishedAt":"2026-08-19T07:52:21+00:00","modifiedAt":"2026-08-19T08:34:48.6841062+00:00","affected":[{"ecosystem":"npm","name":"mutex-core","ranges":[],"versions":["2.1.2"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/mutex-core/v/2.1.2"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-14280","license":"OSV · upstream source license applies","key":"osv:MAL-2026-14280","identifiers":["MAL-2026-14280"]},"retained":false,"historicalAffected":[]}],"coverage":[]}