# CVE-2023-31287: Insufficient token expiration in Serenity

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2023-04-27T00:00:00.000Z
- Modified: 2026-06-17T05:56:43.577Z
- Also known as: GHSA-2hp9-3xfr-r9w2
- Weaknesses: CWE-640
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- Serenity.Net.Core (NuGet): before 6.7.0
- Serenity.Net.Web (NuGet): before 6.7.0
- serenity serene: before 6.7.0
- serenity startsharp: before 6.7.0

## Every score

- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <http://packetstormsecurity.com/files/172648/Serenity-StartSharp-Software-File-Upload-XSS-User-Enumeration-Reusable-Tokens.html> (exploit, web)
- <https://packetstorm.news/files/id/172648> (exploit, web)
- <https://github.com/serenity-is/Serenity/commit/11b9d267f840513d04b4f4d4876de7823a6e48d2> (patch, vendor-advisory, web)
- <http://seclists.org/fulldisclosure/2023/May/14> (mailing-list, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-31287> (advisory)
- <https://github.com/serenity-is/Serenity> (package)

## Sources

- CVE List: [CVE-2023-31287](https://www.cve.org/CVERecord?id=CVE-2023-31287), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-2hp9-3xfr-r9w2](https://github.com/advisories/GHSA-2hp9-3xfr-r9w2), CC-BY-4.0, modified 2025-01-31
- NVD: [CVE-2023-31287](https://nvd.nist.gov/vuln/detail/CVE-2023-31287), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-31287 · Whole record: https://cve.day/CVE-2023-31287.json · Rebuilt by cve.day 2026-11-25T22:58:23.776Z
