CVE-2026-145025: Grav API Plugin before 1.1.21 Password Reset Poisoning via admin_base_url
Grav API plugin before 1.1.21 validates the client-supplied adminbaseurl or Origin header with PHP parseurl() but places the raw string in password reset links, so a backslash-containing URL passes the host check while browsers resolve it to an attacker host. An unauthenticated attacker who knows a user's email address can request a reset via /api/v1/auth/forgot-password, and when the victim clicks the genuine emailed link the reset token is sent to the attacker, enabling account takeover including super-admins.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.1.21
Event History
Frequently Asked Questions
Who can exploit this issue, and what information do they need?
An unauthenticated attacker can trigger the password-reset flow. They need to know the target user's email address and rely on the target clicking the legitimate password-reset link sent by email.
Which accounts are at risk?
Any account for which an attacker can request a password reset may be affected, including super-admin accounts. Successful exploitation can expose the reset token to the attacker and allow account takeover.
Are installations using the affected plugin version exposed by default?
The issue is reachable through the plugin's /api/v1/auth/forgot-password endpoint and involves client-supplied admin_base_url or Origin values. The provided information does not identify any configuration prerequisite or mitigation that would prevent exposure on affected versions.
How can I determine whether a deployment is affected?
Check the installed Grav API Plugin version. Versions before 1.1.21 are affected according to the provided advisory information.