MAL-2026-16069
Malicious code in reactlogo-load (npm)
Details
--- _-= Per source details. Do not edit below this line.=-_
## Source: amazon-inspector (a0f9d76fcf9f229c0a11508004a2be764133c6195530c4d56563eb28c358ab5f) The package presents itself as a logo/color utility but its exported loadLogo() function extracts a URL from LSB-encoded bits of a PNG, fetches the response body, and executes it via a reflective Function-constructor invocation. The 'constructor' property name and the Function reference are hidden behind a deterministic string-shuffle helper (hsvMean) named as a color utility, so no plaintext 'constructor', 'Function', 'eval', or destination URL appears in the source. runInContext binds global.require, module, and exports into the executed script, giving the fetched code full Node runtime capability on the caller's host. Following the README's documented usage (vite/tailwind build integration) triggers the fetch-and-execute path, so arbitrary attacker-controlled code runs on any machine that adopts this library.
Are you affected?
Enter the version of the package you're using.
Affected packages
No fixed version published yet for reactlogo-load (npm). Pin to a known-safe version or switch to an alternative.