CVE-2023-31287: Insufficient token expiration in Serenity
7.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.26118%
CWE
Published
4/27/2023
Updated
1/31/2025
KEV Status
No
Technology
C#
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
Serenity.Net.Core | nuget | < 6.7.0 | 6.7.0 |
Serenity.Net.Web | nuget | < 6.7.0 | 6.7.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from password reset tokens remaining valid after first use. The commit message explicitly states they 'ensured reset password tokens can only be used once,' indicating the reset handler didn't properly mark tokens as consumed. While no direct code diffs are shown, the pattern matches ASP.NET
Core password reset implementations where token validation occurs in AccountController.ResetPassword
. The affected packages (Serenity.Net.Web
) contain web controllers, and the CWE-640 classification confirms this is an authentication flow issue.