{"id":"MAL-2026-10110","summary":"Malicious code in nodemon-patch (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (15ac606888cb1a54710bafa78dc76d760bef1088bb5e2cc0f0323614341345e5)\nThe package is named `nodemon-patch` but its package.json metadata (homepage https://nodemon.io, author Remy Sharp / github.com/remy, repository, funding) and lib/ source are copied verbatim from the legitimate `nodemon` package by Remy Sharp. The package author has not published nodemon and the name is a single-suffix variant of a top-100 npm package, consistent with namespace impersonation. The local lib/ code mirrors upstream nodemon and is functionally benign on its own, but package.json declares a runtime dependency on `webpack-patch@^1.1.7` — a similarly-shaped `*-patch` name that is not a dependency of real nodemon and does not correspond to any established OSS library — plus `chai` as a runtime (not dev) dependency. Any developer who runs `npm i nodemon-patch` expecting nodemon will silently pull `webpack-patch` into their dependency tree, where its install/require-time code would execute. The combination of cloned identity metadata + a same-suffix sibling dependency with no legitimate provenance is the namespace-abuse / dropper-lure shape, but confirming installer harm requires inspecting webpack-patch itself.\n\n## Source: ghsa-malware (84b347fd7c4e127c9aa639ba72b588847c1f591145be983528f62bffd9fd016b)\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","aliases":["GHSA-5v8m-v9mp-gf8h"],"modified":"2026-07-10T15:33:27.952428775Z","published":"2026-07-10T02:56:04Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-07-10T02:56:04Z","source":"ghsa-malware","import_time":"2026-07-10T03:23:39.544650174Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"84b347fd7c4e127c9aa639ba72b588847c1f591145be983528f62bffd9fd016b","id":"GHSA-5v8m-v9mp-gf8h"},{"modified_time":"2026-07-10T15:17:40Z","source":"amazon-inspector","import_time":"2026-07-10T15:23:36.786778969Z","id":"IN-MAL-2026-009610","sha256":"15ac606888cb1a54710bafa78dc76d760bef1088bb5e2cc0f0323614341345e5","versions":["3.1.16"]},{"modified_time":"2026-07-10T15:17:15Z","source":"amazon-inspector","import_time":"2026-07-10T15:23:36.448797632Z","id":"IN-MAL-2026-009607","sha256":"d00edb4d4d5d8bd68d579b541f117b0e999ec1e93745703987a345f6b99fcc27","versions":["3.1.15"]}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-5v8m-v9mp-gf8h"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/nodemon-patch/v/3.1.16"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/nodemon-patch/v/3.1.15"}],"affected":[{"package":{"name":"nodemon-patch","ecosystem":"npm","purl":"pkg:npm/nodemon-patch"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["3.1.16","3.1.15"],"database_specific":{"indicators":{"evidence_files":[{"sha256":"3fbecfb2ab52d91beb815e7eba2fabc7d6dba07f8dd8224bd74b8c1d987c5b6f","path":"package.json","tlsh":"7a410229eca9cda30ec814e5686a01466135c90f4d84fc0cb39b636c4f5e57f70f8a2d"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/nodemon-patch/MAL-2026-10110.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"}]}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}