{"id":"MAL-2026-4508","revision":"7617b205503f4782b919212b13ba1a43","records":[{"revision":"7617b205503f4782b919212b13ba1a43","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-4508","aliases":[],"title":"Malicious code in cdk-insights (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (fa41acb776dbedfe93c37899783a5e54b78017ac31576c798a27eae6b9e9ec89)\nThe package contains code in dist/entry.js and dist/index.js that invokes `npm publish` programmatically combined with `writeFileSync` operations — the canonical wormable auto-publication pattern (enumerate maintainer's other packages, rewrite their package.json, republish under the installer's npm credentials). Additionally, dist/aspects/CdkInsightsAspect.js, dist/entry.js, and dist/index.js contain multiple HTTP POST sinks consistent with hardcoded C2 / data-exfiltration endpoints, and CdkInsightsAspect.js contains `ping`-based network reconnaissance. The combination of wormable self-propagation infrastructure plus exfiltration POST endpoints in install/import-reachable code is unambiguous supply-chain attack shape: any developer or CI system installing this package risks (a) having installer-side data POSTed to attacker-controlled endpoints and (b) having their npm credentials abused to republish malicious versions of their other packages.\n","state":0,"publishedAt":"2026-05-22T16:27:47+00:00","modifiedAt":"2026-08-05T19:19:49.9000988+00:00","affected":[{"ecosystem":"npm","name":"cdk-insights","ranges":[],"versions":["1.41.2","1.42.3","1.59.3","1.60.0","1.58.1","1.61.0","1.59.2","1.60.1","1.59.1"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/cdk-insights/v/1.41.2","https://www.npmjs.com/package/cdk-insights/v/1.42.3","https://www.npmjs.com/package/cdk-insights/v/1.59.3","https://www.npmjs.com/package/cdk-insights/v/1.60.0","https://www.npmjs.com/package/cdk-insights/v/1.58.1","https://www.npmjs.com/package/cdk-insights/v/1.61.0","https://www.npmjs.com/package/cdk-insights/v/1.59.2","https://www.npmjs.com/package/cdk-insights/v/1.60.1","https://www.npmjs.com/package/cdk-insights/v/1.59.1"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-4508","license":"OSV · upstream source license applies","key":"osv:MAL-2026-4508","identifiers":["MAL-2026-4508"]},"retained":false,"historicalAffected":[]}],"coverage":[]}