Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Lifecycle Timeline
3DescriptionGitHub Advisory
Summary of CVE-2025-64526 Vulnerability Details
- CVE: CVE-2025-64526
- CVSS v3.1 Vector:
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N(6.9 - Medium) - Affected Versions:
@strapi/plugin-users-permissions<=5.44.0 - How to Patch: Immediately update your Strapi to >=5.45.0
Description of CVE-2025-64526
In Strapi versions prior to 5.45.0, the rate-limit middleware in the users-permissions plugin derived its rate-limit key in part from ctx.request.body.email, including on routes whose body schema does not contain an email field (/auth/local, /auth/reset-password, /auth/change-password). An unauthenticated attacker could include an arbitrary email value in the request body to obtain a fresh rate-limit key per request, effectively bypassing per-IP throttling on those routes and enabling high-volume credential brute-force, password-reset code brute-force, and credential-stuffing attempts.
The rate-limit key was constructed as ${userIdentifier}:${requestPath}:${ctx.request.ip}, where userIdentifier = ctx.request.body.email. On routes that legitimately use email as their identifier (e.g. /auth/forgot-password, /auth/local/register), this scoping is correct. On routes that use a different identifier (identifier for login, code for password reset, currentPassword for password change), the email field was not part of the route contract, but the middleware still incorporated it into the key, allowing a caller to rotate the value and obtain a unique key on every request.
The patch maintains an allow-list of routes that legitimately key on the email field and excludes that key component on every other route the middleware is mounted on. OAuth callback paths (/connect/*) are treated identifier-less. On routes outside the allow-list, the middleware now falls back to a fixed identifier-less key, ensuring per-IP throttling remains effective even when the request body is attacker-controlled.
IoC's for CVE-2025-64526
Indicators that an instance running an unpatched version may have been exploited:
- Unusually high volumes of
POSTrequests to/api/auth/local,/api/auth/reset-password, or/api/auth/change-passwordfrom a single IP within a 5-minute window without 429 (Too Many Requests) responses - Request bodies on
/api/auth/localcontaining bothidentifierANDemailfields whereemailvaries per request. Body shape regex:"identifier"\s*:\s*"[^"]*",\s*"email"\s*:\s*"[^"]*" - Request bodies on
/api/auth/reset-passwordcontaining an unexpectedemailfield alongsidecode. Body shape regex:"code"\s*:\s*"[^"]*",.*"email"\s*: - Server logs showing many distinct rate-limit key prefixes for the same IP+route combination within the rate-limit window
- Successful authentication or password reset following hundreds of preceding 401/400 responses from the same IP
AnalysisAI
Rate limit bypass in Strapi's users-permissions plugin (all versions <=5.44.0) allows unauthenticated remote attackers to conduct unlimited credential brute-force, password-reset code enumeration, and credential-stuffing attacks against /auth/local, /auth/reset-password, and /auth/change-password endpoints. The middleware incorrectly incorporated an attacker-supplied email field into its rate-limit key on routes where email is not a valid request parameter, meaning each request with a distinct email value obtained a fresh throttle window - rendering per-IP throttling entirely ineffective. No public exploit or KEV listing exists at time of analysis, but the SSVC assessment flags this as automatable, lowering the bar for scripted abuse.
Technical ContextAI
The affected component is the rate-limit middleware within @strapi/plugin-users-permissions (npm package, CPE: pkg:npm/@strapi_plugin-users-permissions). The root cause maps to CWE-307 (Improper Restriction of Excessive Authentication Attempts): the rate-limit key was constructed as the template string '${userIdentifier}:${requestPath}:${ctx.request.ip}', where userIdentifier was read directly from ctx.request.body.email without validating whether the current route's schema actually accepted an email field. Routes such as /auth/local (which uses 'identifier'), /auth/reset-password (which uses 'code'), and /auth/change-password (which uses 'currentPassword') do not contract on an email body parameter, but the middleware consumed it anyway. An attacker who controls the request body can therefore supply arbitrary, rotating email values to generate a distinct key on every request, defeating the entire purpose of per-IP throttling. The fix introduces an allow-list of routes that legitimately key on email (/auth/forgot-password, /auth/local/register) and falls back to a fixed 'noIdentifier' prefix for all other middleware-mounted routes, including OAuth /connect/* paths.
RemediationAI
The primary fix is to upgrade @strapi/plugin-users-permissions to version 5.45.0 or later, which resolves the rate-limit key construction flaw. The patch is confirmed in GitHub pull request https://github.com/strapi/strapi/pull/24818 and commit 5e0d243cba9830e6f791de6a94798bcde51468db, and the patched release is tagged at https://github.com/strapi/strapi/releases/tag/v5.45.0. For operators who cannot immediately upgrade, compensating controls include: deploying a WAF or reverse proxy (e.g., nginx, Cloudflare) configured to enforce strict per-IP rate limits on POST /api/auth/local, /api/auth/reset-password, and /api/auth/change-password independently of request body content - note this adds operational overhead and may impact legitimate high-traffic sources behind NAT. Additionally, enabling CAPTCHA on authentication forms via Strapi's built-in CAPTCHA support eliminates automated scripted attacks at the cost of user friction. Monitoring for the specific IoC patterns described in the advisory (requests containing both 'identifier' and 'email' fields on /api/auth/local, or 'code' plus 'email' on /api/auth/reset-password) can detect active exploitation attempts on unpatched instances.
Share
External POC / Exploit Code
Leaving vuln.today
EUVD-2025-209860
GHSA-7mqx-wwh4-f9fw