npm · Malicious package advisory
Malwareamplitude-react-native
GHSA-52v2-39v7-55rp
Malicious code in amplitude-react-native (npm)
Details
**Severity:** Critical **Affected versions:** `= 45.0.0` ## Source: amazon-inspector (489592652dd724254e29c10536019e0e03e8032e781748a73fc357bb40f50a1d) package.json declares a single dependency whose source is a bare HTTPS URL (https://repo.securityctrl.com/amplitude-react-native) rather than a registry version range, with no version pin and no integrity hash. The dependency key matches the package's own name, a dependency-confusion shape. On npm install, npm fetches whatever tarball that host currently returns and installs it, executing any lifecycle scripts contained in the fetched artifact. The shipped index.js is an inert stub, so the manifest itself is the entire published payload and the operator of repo.securityctrl.com controls code executed on installers' machines. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/d75ebb673b0185a99abe46e9e4a60aaa467fa7d8/osv/malicious/npm/amplitude-react-native/MAL-2026-15525.json)) **References:** - https://github.com/ossf/malicious-packages/blob/d75ebb673b0185a99abe46e9e4a60aaa467fa7d8/osv/malicious/npm/amplitude-react-native/MAL-2026-15525.json - https://www.npmjs.com/package/amplitude-react-native/v/45.0.0 - https://github.com/advisories/GHSA-52v2-39v7-55rp
Compromised versions (1)
- = 45.0.0
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.