{"id":"CVE-2023-31287","aliases":["CVE-2023-31287","GHSA-2hp9-3xfr-r9w2"],"related":[],"kind":"vulnerability","state":"published","title":"Insufficient token expiration in Serenity","summary":"An issue was discovered in Serenity Serene (and StartSharp) before 6.7.0. Password reset links are sent by email. A link contains a token that is used to reset the password. This token remains valid even after the password reset and can be used a second time to change the password of the corresponding user. The token expires only 3 hours after issuance and is sent as a query parameter when resetting. An attacker with access to the browser history can thus use the token again to change the password in order to take over the account.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in Serenity Serene (and StartSharp) before 6.7.0. Password reset links are sent by email. A link contains a token that is used to reset the password. This token remains valid even after the password reset and can be used a second time to change the password of the corresponding user. The token expires only 3 hours after issuance and is sent as a query parameter when resetting. An attacker with access to the browser history can thus use the token again to change the password in order to take over the account.","source":"cvelist"}],"published":"2023-04-27T00:00:00.000Z","modified":"2026-06-17T05:56:43.577Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-640"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.7.0"}],"ecosystem":"NuGet","package":"Serenity.Net.Core","purl":"pkg:nuget/Serenity.Net.Core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.7.0"}],"ecosystem":"NuGet","package":"Serenity.Net.Web","purl":"pkg:nuget/Serenity.Net.Web","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"6.7.0"}],"vendor":"serenity","product":"serene","cpe":"cpe:2.3:a:serenity:serene:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"6.7.0"}],"vendor":"serenity","product":"startsharp","cpe":"cpe:2.3:a:serenity:startsharp:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/serenity-is/Serenity/commit/11b9d267f840513d04b4f4d4876de7823a6e48d2","tags":["patch","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://seclists.org/fulldisclosure/2023/May/14","tags":["mailing-list","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://packetstormsecurity.com/files/172648/Serenity-StartSharp-Software-File-Upload-XSS-User-Enumeration-Reusable-Tokens.html","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://packetstorm.news/files/id/172648","tags":["exploit","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-31287","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/serenity-is/Serenity","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-01-31T18:19:06.834Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-31287","url":"https://www.cve.org/CVERecord?id=CVE-2023-31287","licence":"CVE Terms of Use","modified":"2025-02-13T16:50:05.795Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2hp9-3xfr-r9w2","url":"https://github.com/advisories/GHSA-2hp9-3xfr-r9w2","licence":"CC-BY-4.0","modified":"2025-01-31T21:46:55.085Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-31287","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-31287","licence":"Public domain","modified":"2026-06-17T05:56:43.577Z"}],"updatedAt":"2026-11-25T22:58:23.776Z","epss":{"score":0.00435,"percentile":0.39583,"date":"2026-12-01T12:00:22.000Z"}}