CVE-2026-61451

Critical

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.

SeverityCritical
CVSS9.6
Exploit probability—
ProductGetgrav Grav-plugin-api
PublishedJul 15, 2026
First seenJul 15, 2026

How to fix

Update
  • getgrav grav-plugin-api1.0.4 or later

Affected products

ProductAffected versionsFixed in
getgrav grav-plugin-apiv < 1.0.41.0.4

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.