CVE-2026-61451

Grav API Plugin before 1.0.4 Password Reset Token Poisoning via admin_base_url

Published Jul 15, 2026 CVSS 4.0 · 9.4 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The Grav API plugin (grav-plugin-api) fails to validate the origin of the client‑supplied admin_base_url in the POST /api/v1/auth/forgot‑password endpoint. The sanitizeHttpUrl() function only verifies that the URL scheme is http or https and never checks the host against the server’s own origin, allowing an attacker to supply an arbitrary host. As a result, an unauthenticated attacker can cause password‑reset emails sent to victims to contain a reset link pointing at an attacker‑controlled server; when the victim follows the link, the valid reset token is disclosed and the attacker gains full control of the victim’s account.

Affected Systems

Grav installations that include grav-plugin-api before version 1.0.4 are affected. This includes all users who have not applied the 1.0.4 security release and therefore remain vulnerable to this token‑poisoning flaw.

Risk and Exploitability

The CVSS score of 9.4 shows very high severity, while the EPSS score of less than 1% indicates a low exploitation probability under current conditions. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires only sending a crafted POST request to the forgot‑password endpoint or manipulating the Referer or Origin headers; the attacker can supply an arbitrary host, leading to disclosure of a valid reset token and full account takeover.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Grav to version 1.0.4 or later, which includes the required origin validation logic.
  • If an upgrade cannot be performed immediately, modify the Grav configuration so that the admin_base_url field must match the server’s own origin, rejecting any mismatched hosts.
  • Until the upgrade or configuration change is in place, temporarily disable the password reset feature or monitor outbound emails for unexpected reset links, and use a WAF or proxy to block crafted Referer or Origin headers.

Generated by OpenCVE AI on July 31, 2026 at 03:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title Grav before 1.0.4 Password Reset Token Poisoning via admin_base_url Grav API Plugin before 1.0.4 Password Reset Token Poisoning via admin_base_url
First Time appeared Getgrav grav-plugin-api
CPEs cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:* cpe:2.3:a:getgrav:grav-plugin-api:*:*:*:*:*:*:*:*
Vendors & Products Getgrav grav-plugin-api
Type Values Removed Values Added
CPEs cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Getgrav
Getgrav grav
Vendors & Products Getgrav
Getgrav grav
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Grav before 1.0.4 Password Reset Token Poisoning via admin_base_url
Weaknesses CWE-601
References
Metrics cvssV3_1

{'score': 9.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.4, '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'}

Weaknesses
  • CWE-601

    URL Redirection to Untrusted Site ('Open Redirect')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 29, 2026, 9:16 PM
Reserved
Jul 9, 2026, 2:06 PM
Status
Deferred
Published
Jul 15, 2026, 12:18 PM
Modified
Oct 29, 2026, 9:17 PM