CVE-2026-61451 Grav API Plugin before 1.0.4 Password Reset Token Poisoning via admin_base_url
An attacker can poison password reset links in Grav CMS to steal tokens and take over user accounts.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-61451?
CVE-2026-61451 is a critical vulnerability in getgrav grav-plugin-api, published on 15 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
The Grav API plugin (grav-plugin-api) before 1.0.4 does not validate the origin of the client-supplied admin_base_url field in the POST /api/v1/auth/forgot-password endpoint. The sanitizeHttpUrl() function only checks that the URL scheme is http/https and never verifies the host against the server's own origin, so an attacker can supply an arbitrary host. As a result, an unauthenticated attacker can cause the password reset email sent to a victim to contain a reset link pointing at an attacker-controlled server; when the victim follows the link, the valid reset token is disclosed to the attacker, enabling full account takeover. The vulnerable base URL can also be influenced via the Referer or Origin headers.
Weakness: CWE-601
Which versions are affected by CVE-2026-61451?
How do I fix CVE-2026-61451?
No fix has been published for CVE-2026-61451 yet. Limit exposure of the affected software until one is available.
Is CVE-2026-61451 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-61451 exists.
Sources
Also known as CVE-2026-61839, GHSA-5xc4-j99p-cp4m, GHSA-r9r9-wg76-6qmq.