{"id":"GHSA-27v7-qhfv-rqq8","aliases":["GHSA-27v7-qhfv-rqq8"],"related":[],"kind":"vulnerability","state":"published","title":"Insecure Credential Storage in web3","summary":"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.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative module until a fix is made available.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative module until a fix is made available.","format":"markdown","source":"ghsa"}],"published":"2019-05-30T17:26:30.000Z","modified":"2021-08-31T20:56:47.000Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":3.3,"rating":"LOW"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":3.3,"rating":"LOW"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"1.5.2"}],"ecosystem":"npm","package":"web3","purl":"pkg:npm/web3","source":"ghsa"}],"references":[{"url":"https://github.com/ethereum/web3.js/issues/2739","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ethereum/web3.js","tags":["package"],"sources":["ghsa"]},{"url":"https://snyk.io/vuln/SNYK-JS-WEB3-174533","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/877","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-27v7-qhfv-rqq8","url":"https://github.com/advisories/GHSA-27v7-qhfv-rqq8","licence":"CC-BY-4.0","modified":"2021-08-31T20:56:47.000Z"}],"updatedAt":"2026-11-25T22:56:43.579Z"}