VDB
KO
HIGH

GHSA-vgjh-hmwf-c588

Parse Server has a NoSQL injection via token type in password reset and email verification endpoints

Details

### Impact

A NoSQL injection vulnerability allows an unauthenticated attacker to inject MongoDB query operators via the `token` field in the password reset and email verification resend endpoints. The `token` value is passed to database queries without type validation and can be used to extract password reset and email verification tokens.

Any Parse Server deployment using MongoDB with email verification or password reset enabled is affected. When `emailVerifyTokenReuseIfValid` is configured, the email verification token can be fully extracted and used to verify a user's email address without inbox access.

### Patches

### Patches

The vulnerability is fixed by adding input type validation at the endpoint level.

### Workarounds

There is no known workaround.

### References

- GitHub security advisory: https://github.com/parse-community/parse-server/security/advisories/GHSA-vgjh-hmwf-c588 - Fix Parse Server 9: https://github.com/parse-community/parse-server/releases/tag/9.5.2-alpha.1 - Fix Parse Server 8: https://github.com/parse-community/parse-server/releases/tag/8.6.14

Are you affected?

Enter the version of the package you're using.

Affected packages

npm / parse-server
Introduced in: 9.0.0 Fixed in: 9.5.2-alpha.1
Fix npm install parse-server@9.5.2-alpha.1
npm / parse-server
Introduced in: 0 Fixed in: 8.6.14
Fix npm install parse-server@8.6.14

References