Summary
CVE-2026-130748 is a password reset poisoning vulnerability (CWE-348, Use of Less Trusted Source) in Grav CMS. An anonymous attacker can forge the CloudFront-Forwarded-Proto request header so that a genuine password reset email contains a link pointing to an attacker-controlled host. The vulnerability is rated High (CVSS v4.0 score 8.7).
Technical details
- Root cause:
Uri::createFromEnvironment()reads theCloudFront-Forwarded-Protoheader without checking that thesystem.http_x_forwarded.protocoloption is enabled, and without checking that the value is a legitimate protocol such ashttporhttps. - Trigger conditions: the attacker knows the target’s email address, and the site has working outgoing mail. No base URL is configured, which is the default. The victim must click the reset link.
- Attack vector: network, unauthenticated. The attacker sends a password reset request with a forged
CloudFront-Forwarded-Protoheader. - Impact: the reset email links to an attacker-controlled host. The attacker can capture the reset token and take over the account, including administrator accounts.
Affected software
- Grav 2.x: 2.0.0 through 2.2.17
- Grav 1.7: all versions up to and including 1.7.53.6
Severity
- CVSS v4.0: 8.7 (High) –
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - CVSS v3.1: 7.5 (High) –
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Mitigation and recommended actions
- Immediate: upgrade to Grav 2.2.18 (2.x branch) or Grav 1.7.53.7 (1.7 branch).
- Workarounds, if you cannot patch right away (any one of these):
- Set
system.custom_base_urlto the site’s actual address. - Set
plugins.login.site_hostto the site’s real domain. - Strip the
CloudFront-Forwarded-Protoheader at the web server or proxy.
- Set

