{"id":"MAL-2026-4636","summary":"Malicious code in peertube-plugin-google-analytics-js (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3c66b6ebad55556f956fbc181293327eb4051d2ec6de6436a24d027fac58e580)\nThis PeerTube plugin advertises itself as a Google Analytics integration but its client-side script (client/common-client-plugin.js:8) registers a 'common' scope clientScript that injects a remote \u003cscript\u003e tag pointing at https://www.googie-anaiytics.com/jquery.ui.js — a homoglyph typosquat of google-analytics.com (l→i substitutions). The injected element uses a misleading id ('audit-localhost-test-js'). Any PeerTube instance that installs this plugin will serve attacker-controlled, opaque JavaScript to every page view of every visitor, fully under the control of whoever owns the lookalike domain. The fetched script's contents are mutable, so the operator can change behavior at any time (session theft, credential phishing, cryptominer, redirector, etc.) without republishing the plugin. Corroborating signals: package.json has an empty author and homepage/bugs URLs pointing at example.invalid, consistent with throwaway-publisher placeholder metadata.\n\n## Source: ghsa-malware (69aa9596df551230f77204835ab67a0cda9517105616ed721fb4696028aad181)\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-4r2m-9mxx-rf7q"],"modified":"2026-06-01T17:16:36.798907136Z","published":"2026-05-22T18:46:45Z","withdrawn":"2026-05-26T22:13:04Z","database_specific":{"malicious-packages-origins":[{"versions":["0.0.1"],"source":"amazon-inspector","sha256":"3c66b6ebad55556f956fbc181293327eb4051d2ec6de6436a24d027fac58e580","import_time":"2026-05-26T05:52:13.689791439Z","id":"IN-MAL-2026-004246","modified_time":"2026-05-22T18:46:45Z"},{"modified_time":"2026-06-01T15:33:38Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"source":"ghsa-malware","sha256":"69aa9596df551230f77204835ab67a0cda9517105616ed721fb4696028aad181","import_time":"2026-06-01T17:03:32.536865585Z","id":"GHSA-4r2m-9mxx-rf7q"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/peertube-plugin-google-analytics-js/v/0.0.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-4r2m-9mxx-rf7q"}],"affected":[{"package":{"name":"peertube-plugin-google-analytics-js","ecosystem":"npm","purl":"pkg:npm/peertube-plugin-google-analytics-js"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["0.0.1"],"database_specific":{"indicators":{"package_integrity":[{"filename":"peertube-plugin-google-analytics-js-0.0.1.tgz","hashes":{"sha1":"94f35092c029dd6f31e9630fe8b0ba4aa767cc22","sha512_sri":"sha512-sxtty9n7JG12XSYHpHb6gmiAev2wm8jYamqmXUHr8Iv+/G+VXjjUWd+RqKyuV9OmAeiRA9C/7u4E9jSnDAQPBQ=="}}],"evidence_files":[{"tlsh":"83e026aaacfac5325ba575af247ed378761360193402f8858eecca956041fed9c22d0d","path":"client/common-client-plugin.js","sha256":"b65a877a06feb26babbdbd7a4cd10aba9ba70c41f8a469f268a7bc17b1b4d6a9"},{"path":"package.json","sha256":"a95dc007c3016fa7d60dd44f9af3b13f7fc7c4a51c02ba11a7ef448189b0ce66","tlsh":"1801c00c9a649c7345d90776b2289685d2384a8359ddfc1577df010c4f4ca6b44ffd8c"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/withdrawn/npm/peertube-plugin-google-analytics-js/MAL-2026-4636.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}]}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["actran@amazon.com"],"type":"FINDER"}]}