{"id":"CVE-2026-61451","aliases":["CVE-2026-61451"],"related":[],"kind":"vulnerability","state":"published","title":"Grav API Plugin before 1.0.4 Password Reset Token Poisoning via admin_base_url","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-07-15T11:25:44.506Z","modified":"2026-10-29T21:17:26.660Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":9.4,"rating":"CRITICAL"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":9.4,"rating":"CRITICAL"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","score":9.6,"rating":"CRITICAL"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.0.4","status":"affected"},{"type":"semver","version":"1.0.4","status":"unaffected"}],"vendor":"getgrav","product":"grav-plugin-api","repo":"https://github.com/getgrav/grav-plugin-api","source":"cvelist"}],"references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-5xc4-j99p-cp4m","tags":["exploit","vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/grav-before-password-reset-token-poisoning-via-admin-base-url","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["gemstone-source"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-07-15T12:38:04.447Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-61451","url":"https://www.cve.org/CVERecord?id=CVE-2026-61451","licence":"CVE Terms of Use","modified":"2026-10-29T21:16:05.664Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-61451","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61451","licence":"Public domain","modified":"2026-10-29T21:17:26.660Z"}],"updatedAt":"2026-11-25T22:59:28.276Z","epss":{"score":0.00696,"percentile":0.54252,"date":"2026-12-01T12:00:22.000Z"}}