{"id":"MAL-2026-4805","summary":"Malicious code in metricflow-tracker (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (a9a1c269ce5e462d7e555ce1ca34b7f2e54e3d34ea094d35a67aa7c61d1fe34e)\nThe package's exported `Metricflow` React component defaults `serverUrl` to `http://51.38.65.105:21531` and, when rendered, appends a `\u003cscript src=\"${serverUrl}/TrakLab-plugin/Dev/tracklab.js\"\u003e` tag to `document.head` in the consumer's web application (dist/index.js line 18). The fetched JavaScript executes with full DOM and same-origin access in any site that uses the component. The source is a bare IPv4 address over cleartext HTTP at a mutable `/Dev/` path with no Subresource Integrity, no version pinning, and no TLS — whoever controls that IP, and any on-path network attacker, can serve arbitrary JavaScript into the consumer's application. Additionally, `window.MetricflowConfig.collectUrl` defaults to `http://51.38.65.105:21531/collect`, silently relaying end-user telemetry collected by the loaded tracker to the same hardcoded host. Package metadata provides no author, homepage, or documentation tying that IP to a legitimate analytics vendor. The combination of remote-code-loading from an unverified mutable HTTP endpoint plus silent relay of end-user data to an opaque destination is supply-chain harm to any installer that renders this component.\n","modified":"2026-05-26T13:47:12.104650162Z","published":"2026-05-26T13:28:52Z","database_specific":{"malicious-packages-origins":[{"versions":["1.0.0"],"id":"IN-MAL-2026-004911","import_time":"2026-05-26T13:32:47.033273503Z","modified_time":"2026-05-26T13:28:52Z","sha256":"a9a1c269ce5e462d7e555ce1ca34b7f2e54e3d34ea094d35a67aa7c61d1fe34e","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/metricflow-tracker/v/1.0.0"}],"affected":[{"package":{"name":"metricflow-tracker","ecosystem":"npm","purl":"pkg:npm/metricflow-tracker"},"versions":["1.0.0"],"database_specific":{"indicators":{"package_integrity":[{"hashes":{"sha1":"d68a60c916f806249435c625366e3a04dc5b951c","sha512_sri":"sha512-sdBvy0X9A51iJpA43xFLyWZlHocCxxzRxCk5JN236/0tbe5aFnvkKSaXSDN9oizDNT5b+iuBxd8NIUPmtTvvOg=="},"filename":"metricflow-tracker-1.0.0.tgz"}],"evidence_files":[{"path":"dist/index.js","sha256":"cdc3f2349d5fff30bc584c81f42f36cb3134a5ea58869dc1c30d4805a15a0a12","tlsh":"f531ee904cf694760962405eabb3d251bb866663a00ad40d7bdddb4a6f80fcc5dc1be1"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/metricflow-tracker/MAL-2026-4805.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}]}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["actran@amazon.com"],"type":"FINDER"}]}