{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-31590","published":"2021-07-19T20:15:08.660000Z","last_modified":"2026-06-17T03:52:02.867000Z","status":"Modified","cvss":{"version":"3.1","score":8.8,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":[],"cpes":[{"criteria":"cpe:2.3:a:pwndoc_project:pwndoc:*:*:*:*:*:*:*:*","part":"a","vendor":"pwndoc_project","product":"pwndoc","version_end_excluding":"0.4.0"}],"cpes_truncated":false,"vendors":["pwndoc_project"],"products":["pwndoc_project/pwndoc"],"epss":{"score":0.02653,"percentile":0.86411,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"high","priority_score":53,"links":{"html_es":"/es/cve/CVE-2021-31590/","html_en":"/en/cve/CVE-2021-31590/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-31590","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-31590"},"untrusted":{"vendor_name":"Pwndoc Project","product_name":"Pwndoc","desc_en":"PwnDoc all versions until 0.4.0 (2021-08-23) has incorrect JSON Webtoken handling, leading to incorrect access control. With a valid JSON Webtoken that is used for authentication and authorization, a user can keep his admin privileges even if he is downgraded to the \"user\" privilege. Even after a user's account is deleted, the user can still access the administration panel (and add or delete users) and has complete access to the system.","affected":[],"references":[{"url":"https://github.com/pwndoc/pwndoc/blob/59519735b0d831d8fd96d7c3387f66d28407e583/CHANGELOG.md#040-2021-08-23","tags":["Patch","Release Notes","Third Party Advisory"]},{"url":"https://github.com/pwndoc/pwndoc/commit/15f3dc0e212eda465e05fda0feb002d1bce2939d","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/pwndoc/pwndoc/commit/ff1b868cec55f5b6c7a91e15a2b0b1f4324121ab","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/pwndoc/pwndoc/pull/128","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/pwndoc/pwndoc/pull/74","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/pwndoc/pwndoc/security/advisories","tags":["Broken Link"]},{"url":"https://www.dgc.org/responsible_disclosure_pwndoc_jwt","tags":["Exploit","Third Party Advisory"]}]}}