# GHSA-8536-VQ8V-5XVM: Malicious code in eth-react-provider (npm)

- Database: GitHub
- Malicious package: yes
- Published: 2026-08-19
- Modified: 2026-09-10

## Affected versions

- eth-react-provider (npm): 1.0.0

## Description

## Source: amazon-inspector (7b9bdf79a694cbf6d1a840541b4c47fdac8dc6ac32f4b6a3d4887d5f81233387)
The package advertises itself as a React Ethereum provider exporting EthereumProvider/useProvider/useSigner/useNetwork hooks, but the shipped main entry lib/index.js contains web3.js Subscriptions code plus a large obfuscated payload wrapped in a Function("ObbvO95", "...") constructor that is invoked at module load. The payload uses randomized hex-named identifiers, a signed-integer decode table, and a doubly-unicode-escaped string body to hide its behavior from static inspection. Any consumer that require('eth-react-provider') executes this opaque code in the installer's process. The src/index.js in the tarball contains the clean web3.js source without this payload, indicating the built artifact was tampered. The README/code mismatch (documented React hook API vs. actual web3.js Subscriptions plus loader) is consistent with a trojanized lookalike package rather than a broken release.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/2c3bf41be3083dec7e315a023dad26178e5ac7fc/osv/malicious/npm/eth-react-provider/MAL-2026-14300.json))

## References

- https://github.com/ossf/malicious-packages/blob/2c3bf41be3083dec7e315a023dad26178e5ac7fc/osv/malicious/npm/eth-react-provider/MAL-2026-14300.json
- https://www.npmjs.com/package/eth-react-provider/v/1.0.0
- https://github.com/ossf/malicious-packages/blob/71b5ccd62809b0f6e173eff59b5900130cf7fc02/osv/malicious/npm/eth-react-provider/MAL-2026-14300.json
- https://github.com/advisories/GHSA-8536-vq8v-5xvm

Page: https://cve.now/GHSA-8536-VQ8V-5XVM

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
