{"id":"CVE-2021-39138","published":"2021-08-18T21:40:11Z","modified":"2024-08-04T01:58:18Z","title":"New anonymous user session acts as if it's created with password","vendor":"parse-community","product":"parse-server","tier":"tail","description":{"text":"Parse Server is an open source backend that can be deployed to any infrastructure that can run Node.js. Developers can use the REST API to signup users and also allow users to login anonymously. Prior to version 4.5.1, when an anonymous user is first signed up using REST, the server creates session incorrectly. Particularly, the `authProvider` field in `_Session` class under `createdWith` shows the user logged in creating a password. If a developer later depends on the `createdWith` field to provide a different level of access between a password user and anonymous user, the server incorrectly classified the session type as being created with a `password`. The server does not currently use `createdWith` to make decisions about internal functions, so if a developer is not using `createdWith` directly, they are not affected. The vulnerability only affects users who depend on `createdWith` by using it directly. The issue is patched in Parse Server version 4.5.1. As a workaround, do not use the `createdWith` Session field to make decisions if one allows anonymous login.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00993,"percentile":0.61464,"provenance":"source"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"}],"references":[{"url":"https://github.com/parse-community/parse-server/security/advisories/GHSA-23r4-5mxp-c7g5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/parse-community/parse-server/commit/147bd9a3dc43391e92c36e05d5db860b04ca27db","tags":["x_refsource_MISC"]},{"url":"https://github.com/parse-community/parse-server/releases/tag/4.5.1","tags":["x_refsource_MISC"]}],"priority":{"score":15.7,"factors":[{"name":"EPSS percentile","points":12.29},{"name":"CVSS severity","points":3.36}]},"vendorSlug":"parse-community","affectedVersions":[{"vendor":"parse-community","product":"parse-server","versions":["< 4.5.1"]}],"affected":[{"ecosystem":"npm","package":"parse-server","vulnerableRanges":["<4.5.2"],"patched":["4.5.2"],"from":["GHSA-23r4-5mxp-c7g5"],"provenance":"source"}],"summary":{"text":"Parse Server, the open-source Node.js backend, has a flaw before version 4.5.1 in which sessions created by anonymous REST signups record the createdWith field as password, misclassifying the session type. An attacker who can reach the server over the network without authentication could exploit this only where a developer relies directly on the createdWith field to grant different access levels to password and anonymous users, since the server's internal functions do not use that field.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:29:46Z"},"euvd":{"id":"EUVD-2021-1504","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-15126","published":"2020-07-22","fixed":"4.3.0","kev":false},{"cve":"CVE-2020-15270","published":"2020-10-22","fixed":"4.4.0","kev":false},{"cve":"CVE-2020-26288","published":"2020-12-30","fixed":"4.5.0","kev":false,"link":{"from":"CVE-2020-26288","to":"CVE-2021-39138","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:parse-server","fromFixed":"4.5.0","toFixed":"4.5.2","daysApart":231}]}},{"cve":"CVE-2021-39138","published":"2021-08-18","fixed":"4.5.2","kev":false},{"cve":"CVE-2021-39187","published":"2021-09-02","fixed":"4.10.3","kev":false,"link":{"from":"CVE-2021-39138","to":"CVE-2021-39187","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:parse-server","fromFixed":"4.5.2","toFixed":"4.10.3","daysApart":15}]}},{"cve":"CVE-2021-41109","published":"2021-09-30","fixed":"4.10.4","kev":false},{"cve":"CVE-2022-24760","published":"2022-03-11","fixed":"4.10.7","kev":false}],"package":"npm:parse-server"}}