CVE-2026-61451 Details
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.
A vulnerability exists in the Grav API plugin (grav-plugin-api) versions prior to 1.0.4, where the 'admin_base_url' field in the POST '/api/v1/auth/forgot-password' endpoint is not properly validated. The 'sanitizeHttpUrl()' function only ensures the URL scheme is either HTTP or HTTPS, without verifying the host against the server's origin. This flaw allows an unauthenticated attacker to manipulate the password reset link sent to a victim, directing it to an attacker-controlled server. When the victim clicks the link, the valid reset token is exposed to the attacker, facilitating full account takeover. The vulnerability can also be exploited by altering the Referer or Origin headers.
Users are advised to update the Grav API plugin to version 1.0.4 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 15, 2026CISA-ADP
Assessed Jul 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/getgrav/grav/security/advisories/GHSA-5xc4-j99p-cp4m | CISA-ADP | AdvisoryExploitTechnical AnalysisVendor |
| https://github.com/getgrav/grav/security/advisories/GHSA-5xc4-j99p-cp4m | [email protected] | AdvisoryExploitTechnical AnalysisVendor |
| https://www.vulncheck.com/advisories/grav-before-password-reset-token-poisoning-via-admin-base-url | [email protected] | Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-601 | URL Redirection to Untrusted Site ('Open Redirect') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Grav API | <= 1.0.3 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 15, 2026 | CVE Modified | CISA-ADP |
| Jul 15, 2026 | New CVE Received | [email protected] |
Volerion