CVE-2023-31999
CVSS 3.1 Score 8.8 of 10 (high)
Details
Summary
CVE-2023-31999 affects all versions of the @fastify/oauth2 library. The vulnerability arises from the use of a statically generated state parameter at startup time, which is applied to all requests for all users. This goes against the best security practices for OAuth2 state parameters, which should be unique per user and connected to their session. The new version, 7.2.0, addresses this issue by storing the state in a cookie with http-only and same-site=lax attributes, and generating a new state for each user. This change results in a breaking change in the checkStateFunction function, which now accepts the full Request object.
Prevent cyber attacks with Recorded Future by prioritizing and patching critical vulnerabilities being exploited by threat actors targeting your industry. Book your demo to learn more.
Advisories, Assessments, and Mitigations
Prioritize, Pinpoint, and Act to Prevent Vulnerability Exploits with Recorded Future
- Gain complete coverage of your cyber, third party, and physical attack surface
- Proactively mitigate threats before they turn into costly attacks
- Make fast, effective, data-driven decisions