{"id":"MAL-2026-6661","summary":"Malicious code in clx-cookieparser (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (29b7ab13cd76393ea58b540ccf13b4ab4660edb4fac210d86a67e51b45fa1d0c)\nPackage ships a verbatim copy of the Express 'cookie-parser' middleware under a different name ('clx-cookieparser') and declares a repository field 'expressjs/clx-cookieparser' that does not exist under the expressjs GitHub organization, suggesting unauthorized association with the upstream project. The shipped code (index.js requires 'cookie' and 'cookie-signature' and re-implements cookie-parser) contains no network I/O, no install/lifecycle scripts, no obfuscation, and no credential handling — there is no demonstrated installer-side harm. The concern is name/metadata confusion: a developer searching for or mistyping 'cookie-parser' could install this lookalike, and the false repository attribution amplifies the confusion. Routing to human review so a maintainer can assess intent (benign mirror vs. squat positioning) and registry action.\n\n## Source: ghsa-malware (2fe4e10a5059e10daab1da62d3a625251bd2a87d1570966423f7ee26c49fff47)\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-jpg2-3r22-63v7"],"modified":"2026-07-08T23:01:47.456755198Z","published":"2026-06-29T16:33:55Z","database_specific":{"malicious-packages-origins":[{"sha256":"2fe4e10a5059e10daab1da62d3a625251bd2a87d1570966423f7ee26c49fff47","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"import_time":"2026-06-29T17:14:01.285815775Z","modified_time":"2026-06-29T16:33:55Z","id":"GHSA-jpg2-3r22-63v7","source":"ghsa-malware"},{"versions":["1.4.6"],"sha256":"38c6a4f8363234389473468040344ac64c99370feeef2776f14c29722b165da2","import_time":"2026-07-08T20:32:46.47538819Z","modified_time":"2026-07-08T20:31:17Z","id":"IN-MAL-2026-008577","source":"amazon-inspector"},{"versions":["1.4.9"],"sha256":"e01e589ff24746039e561faaed378df98aff9a728ee037ec8a664d55c74cc814","import_time":"2026-07-08T20:32:46.900635104Z","modified_time":"2026-07-08T20:31:47Z","id":"IN-MAL-2026-008581","source":"amazon-inspector"},{"versions":["1.5.1"],"sha256":"190774ec03c36ad55f763cdc2d26ec958809f77a2cb5d34ae2c864d0212cb798","import_time":"2026-07-08T21:27:48.42009733Z","id":"IN-MAL-2026-008583","modified_time":"2026-07-08T20:32:03Z","source":"amazon-inspector"},{"versions":["1.4.5"],"sha256":"e90f6b95d11d5b4da6138cae22a57a2c55d0444858d92283c5ea3198dc5ffd0f","import_time":"2026-07-08T22:51:20.160274469Z","modified_time":"2026-07-08T22:33:13Z","id":"IN-MAL-2026-008787","source":"amazon-inspector"},{"versions":["1.4.4"],"sha256":"29b7ab13cd76393ea58b540ccf13b4ab4660edb4fac210d86a67e51b45fa1d0c","import_time":"2026-07-08T22:51:19.81536988Z","modified_time":"2026-07-08T22:32:41Z","id":"IN-MAL-2026-008784","source":"amazon-inspector"},{"versions":["1.4.8"],"sha256":"7ae84a5e939b048d6ca5d9fc8f4787d98896762e155e494c35b7d4e3f0887a40","import_time":"2026-07-08T22:51:20.030487254Z","modified_time":"2026-07-08T22:33:04Z","id":"IN-MAL-2026-008786","source":"amazon-inspector"},{"versions":["1.4.7"],"sha256":"d246c13ff6827d6befce1e658a11eca9b23cdfd9f314554ee50f01b0c929255c","import_time":"2026-07-08T22:51:20.493377085Z","modified_time":"2026-07-08T22:33:38Z","id":"IN-MAL-2026-008790","source":"amazon-inspector"}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-jpg2-3r22-63v7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/clx-cookieparser/v/1.4.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/clx-cookieparser/v/1.4.9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/clx-cookieparser/v/1.5.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/clx-cookieparser/v/1.4.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/clx-cookieparser/v/1.4.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/clx-cookieparser/v/1.4.8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/clx-cookieparser/v/1.4.7"}],"affected":[{"package":{"name":"clx-cookieparser","ecosystem":"npm","purl":"pkg:npm/clx-cookieparser"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.4.6","1.4.9","1.5.1","1.4.5","1.4.4","1.4.8","1.4.7"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/clx-cookieparser/MAL-2026-6661.json","indicators":{"evidence_files":[{"tlsh":"29219d33d5480c2742f496a9bc7812c2f1125b8f4192cc0fb5b9231c8fb36a348a6fb6","sha256":"a4de332c627cd9ae27b43e0f3d41d05a93f550988469c4dda29f130ab202dfcd","path":"package.json"}]},"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}]}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}