# GHSA-27v7-qhfv-rqq8: Insecure Credential Storage in web3

- Severity: Low 3.3 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2019-05-30T17:26:30.000Z
- Modified: 2021-08-31T20:56:47.000Z

## Description

All versions of `web3` are vulnerable to Insecure Credential Storage. The package stores encrypted wallets in local storage and requires a password to load the wallet. Once the wallet is loaded, the private key is accessible via LocalStorage. Exploiting this vulnerability likely requires a Cross-Site Scripting vulnerability to access the private key.


## Recommendation

No fix is currently available. Consider using an alternative module until a fix is made available.

(As written by GitHub Advisory Database.)

## Affected

- web3 (npm): up to 1.5.2

## References

- <https://github.com/ethereum/web3.js/issues/2739> (web)
- <https://github.com/ethereum/web3.js> (package)
- <https://snyk.io/vuln/SNYK-JS-WEB3-174533> (web)
- <https://www.npmjs.com/advisories/877> (web)

## Sources

- GitHub Advisory Database: [GHSA-27v7-qhfv-rqq8](https://github.com/advisories/GHSA-27v7-qhfv-rqq8), CC-BY-4.0, modified 2021-08-31

---

Page: https://cve.day/GHSA-27v7-qhfv-rqq8 · Whole record: https://cve.day/GHSA-27v7-qhfv-rqq8.json · Rebuilt by cve.day 2026-11-25T22:56:43.579Z
