# CVE-2026-61451: Grav API Plugin before 1.0.4 Password Reset Token Poisoning via admin_base_url

> An attacker can poison password reset links in Grav CMS to steal tokens and take over user accounts.

- **Severity:** Critical 9.4 (`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`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** No
- **Published:** 15 Jul 2026
- **Updated:** 29 Oct 2026
- **Also known as:** CVE-2026-61839, GHSA-5xc4-j99p-cp4m, GHSA-r9r9-wg76-6qmq

## What is CVE-2026-61451?

CVE-2026-61451 is a critical vulnerability in getgrav grav-plugin-api, published on 15 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official 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.

Weakness: CWE-601 (URL Redirection to Untrusted Site)

## Which versions are affected by CVE-2026-61451?


## How do I fix CVE-2026-61451?

No fix has been published for CVE-2026-61451 yet. Limit exposure of the affected software until one is available.

## Is CVE-2026-61451 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-61451 exists.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-61451 and fix it if it is affected.

What it is: CVE-2026-61451 is a critical vulnerability in getgrav grav-plugin-api, published on 15 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-61451 exists.

Affected product: getgrav grav-plugin-api. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-61451/ (Markdown: https://insights.sbomify.com/CVE-2026-61451/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-61451
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-61451
- OSV: https://osv.dev/vulnerability/CVE-2026-61451

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-61451/
Summaries are generated and may contain mistakes; the official description above is the record.
