CVE-2026-61451CWE-601

Grav before 1.0.4 Password Reset Token Poisoning via admin_base_url

Critical · published July 15, 2026

CVSS v4.0
9.4
EPSS
0%
Percentile
35.5
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
9.4 · CRITICAL
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
EPSS
0.00422 · 35.5th percentile
Weakness
CWE-601 · URL Redirection to Untrusted Site ('Open Redirect')
Published
2026-07-15T11:25Z
EPSS history
Timeline
  • 15 JUL 11:25Z
    Grav before 1.0.4 Password Reset Token Poisoning via admin_base_url
    cvelistv5