{"id":"MAL-2026-4784","summary":"Malicious code in react-ui-polyfills (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (63c43460df1ee670b8a5982d77e7028aef7df25fa38922f743489fd52b41b5ea)\nPackage advertises itself as React polyfills / UI compatibility helpers but ships no React or polyfill code. The exported getPlugin() function returns a closure that fetches JSON from https://jsonkeeper.com/b/GMIHS (an anonymous, mutable paste-style host with no integrity verification) and passes the parsed.cookie field directly to eval(), executing attacker-controlled JavaScript in the consumer's process. The mismatch between the package's advertised purpose (React polyfills) and its actual contents (SVG utilities + remote-eval backdoor) indicates the name is engineered to lure React developers. Any application that imports this package and invokes getPlugin() will execute whatever JavaScript the attacker chooses to host at the jsonkeeper URL at that moment.\n\n## Source: ghsa-malware (258097416cb997b01e098f8838dd386a7310cb665d40c38f5e146535090d516a)\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-v7mj-pmr3-7x4p"],"modified":"2026-06-05T15:31:25.749338087Z","published":"2026-05-26T07:20:20Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-05-26T07:20:20Z","versions":["1.2.7"],"source":"amazon-inspector","sha256":"63c43460df1ee670b8a5982d77e7028aef7df25fa38922f743489fd52b41b5ea","import_time":"2026-05-26T07:48:28.590161035Z","id":"IN-MAL-2026-004860"},{"source":"amazon-inspector","sha256":"983903a0ea0bc54186092f0509ca55ed8861039835e4fbc91a0452c99b177637","import_time":"2026-05-26T07:48:28.645154376Z","id":"IN-MAL-2026-004861","modified_time":"2026-05-26T07:20:21Z","versions":["1.2.7"]},{"source":"amazon-inspector","sha256":"1980d59ba145376faa2b0e3ee80c62c47d0721390a39ab80e5046976cefc157c","import_time":"2026-05-26T09:17:31.584544154Z","id":"IN-MAL-2026-004864","modified_time":"2026-05-26T08:03:20Z","versions":["1.0.0"]},{"import_time":"2026-05-26T09:17:31.6694591Z","id":"IN-MAL-2026-004865","modified_time":"2026-05-26T08:03:21Z","versions":["1.0.0"],"source":"amazon-inspector","sha256":"95822dbefead1d7a8b78540dea5bbf1eb3605d600910f7b46dc8f7d46b853b5b"},{"import_time":"2026-06-05T15:22:17.757091593Z","id":"GHSA-v7mj-pmr3-7x4p","modified_time":"2026-06-05T14:01:48Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"source":"ghsa-malware","sha256":"258097416cb997b01e098f8838dd386a7310cb665d40c38f5e146535090d516a"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/react-ui-polyfills/v/1.2.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/react-ui-polyfills/v/1.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-v7mj-pmr3-7x4p"}],"affected":[{"package":{"name":"react-ui-polyfills","ecosystem":"npm","purl":"pkg:npm/react-ui-polyfills"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.2.7","1.0.0"],"database_specific":{"cwes":[{"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."},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"package_integrity":[{"filename":"react-ui-polyfills-1.2.7.tgz","hashes":{"sha1":"d1e245442885bd2852df22780f8427fcd8b77c14","sha512_sri":"sha512-CwkJj9AqX09AK5KZgwV7Dlnz3yLBxiCr4sROsw80xO2qlqfVxV0JCtLSMivE/b3G5gOMbBS6wdLvZ/GRdA92dQ=="}}],"domains":["34.6.16.104.in-addr.arpa"],"evidence_files":[{"tlsh":"ac7122a8999b70a5d6b1e3e447135011f559d1a72208c3d4b7acc5983fb272c90f3eec","path":"index.js","sha256":"52a59b0f9fb6d920116cf971981652c3adf161461953ed510f32ca3fbf403f68"},{"tlsh":"f5f0dc32891086a319f45ba338356a0b395a4f2f10684c06347b102c92a26ae000e74c","path":"package.json","sha256":"e7fe38d60d971dfbbcb1d13c512577e2bd76580f99a77e3c77a2dfe59200a994"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/react-ui-polyfills/MAL-2026-4784.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["actran@amazon.com"],"type":"FINDER"}]}