# GHSA-wvh7-5p38-2qfc: Storing Password in Local Storage

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-07-23T18:20:10.000Z
- Modified: 2021-09-22T21:05:43.000Z
- Weaknesses: CWE-256

## Description

The `setPassword` method (http://parseplatform.org/Parse-SDK-JS/api/2.9.1/Parse.User.html#setPassword) stores the user's password in localStorage as raw text making it vulnerable to anyone with access to your localStorage. We believe this is the only time that password is stored at all. In the documentation under Users > Signing Up, it clearly states, "We never store passwords in plaintext, nor will we ever transmit passwords back to the client in plaintext."

Example Code:
```js
async () => {
    const user = Parse.User.current()
    if (user) {
        user.setPassword('newpass')
        await user.save()
    }
}
```
After running the above code, the new password will be stored in localStorage as a property named "password".

Proposed Solution:
Before saving anything to localStorage, Parse should strip out any properties named "password" that are attempting to be stored with a Parse.User type object.

Configuration:
Parse SDK: 2.9.1
Parse Server: 3.9.0

(As written by GitHub Advisory Database.)

## Affected

- parse (npm): before 2.10.0

## References

- <https://github.com/parse-community/Parse-SDK-JS/security/advisories/GHSA-wvh7-5p38-2qfc> (web)
- <https://github.com/parse-community/Parse-SDK-JS/commit/d1106174571b699f972929dd7cbb8e45b5283cbb> (web)
- <https://github.com/parse-community/Parse-SDK-JS> (package)

## Sources

- GitHub Advisory Database: [GHSA-wvh7-5p38-2qfc](https://github.com/advisories/GHSA-wvh7-5p38-2qfc), CC-BY-4.0, modified 2021-09-22

---

Page: https://cve.day/GHSA-wvh7-5p38-2qfc · Whole record: https://cve.day/GHSA-wvh7-5p38-2qfc.json · Rebuilt by cve.day 2026-11-25T22:56:46.911Z
