CVE-2026-61451
JSON

9.4critical

Grav API Plugin before 1.0.4 Password Reset Token Poisoning via admin_base_url

Severity
9.4critical CVSS:4.0 by VulnCheck
Exploit likelihood
0.70% (higher than 54% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck

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.

Affected

Product or packageVersionsReported by
getgrav grav-plugin-apibefore 1.0.4
Not affected: 1.0.4
CVE List

All scores

VulnCheck9.4critical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
VulnCheck9.6critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Classification

CWE-601

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

El plugin Grav API (grav-plugin-api) anterior a la versión 1.0.4 no valida el origen del campo admin_base_url proporcionado por el cliente en el endpoint POST /api/v1/auth/forgot-password. La función sanitizeHttpUrl() solo verifica que el esquema de la URL sea http/https y nunca verifica el host contra el propio origen del servidor, por lo que un atacante puede proporcionar un host arbitrario. Como resultado, un atacante no autenticado puede hacer que el correo electrónico de restablecimiento de contraseña enviado a una víctima contenga un enlace de restablecimiento que apunte a un servidor controlado por el atacante; cuando la víctima sigue el enlace, el token de restablecimiento válido se divulga al atacante, lo que permite la toma de control total de la cuenta. La URL base vulnerable también puede ser influenciada a través de los encabezados Referer u Origin.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-61451 changed 2026-10-29CVE Terms of Use
NVDCVE-2026-61451 changed 2026-10-29Public domain