{"id":"MAL-2026-12350","revision":"48511867daed4e1fa02d8b96863422a7","records":[{"revision":"48511867daed4e1fa02d8b96863422a7","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12350","aliases":[],"title":"Malicious code in chart-data-utils (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3980b39b1ba77c4c8df0b8e08016a299640a60b6255c1ea8be1883343ec750e9)\nchart-data-utils@1.0.0 advertises itself as a chart data/color helper library (index.js contains only trivial color utilities), but ships a postinstall.js that runs at npm install time and performs credential harvesting and host reconnaissance. The postinstall shells out via child_process.exec to: (1) collect hostname, whoami/id output, Docker/cgroup indicators, sudo -ln, ps aux, ip addr/route; (2) enumerate process environment variables and grep-filter for KEY|TOKEN|SECRET|CREDENTIAL|NPM_TOKEN|AWS_|AZURE|GCP|GITHUB_TOKEN plus GitHub Actions identity fields (GITHUB_TOKEN, GITHUB_REPOSITORY, GITHUB_ACTOR, RUN_ID); (3) probe cloud instance-metadata endpoints at 169.254.169.254 (AWS), 100.100.100.200 (Aliyun), metadata.google.internal (GCP), metadata.tencentyun.com (Tencent), and an internal host tst.woa.com; (4) base64-encode the collected data and POST/GET it over plain HTTP to the hardcoded Burp Collaborator subdomain pzs5w7ntzhsnepwk564lyfdci3oucl0a.oastify.com. The package name/description are a cover story for a CI credential harvester; Chinese-language comments (\"分片回传版\") in the postinstall reference tst.woa.com.\n","state":0,"publishedAt":"2026-08-05T12:31:46+00:00","modifiedAt":"2026-09-24T09:30:14.7848422+00:00","affected":[{"ecosystem":"npm","name":"chart-data-utils","ranges":[],"versions":["1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/chart-data-utils/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12350","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12350","identifiers":["MAL-2026-12350"]},"retained":false,"historicalAffected":[]}],"coverage":[]}