Grav reset links must not inherit forged proxy schemes

Password reset links combine a secret token with a host and scheme. CVE-2026-130748 shows what happens when a reverse proxy header is allowed to choose that scheme without a trusted-proxy policy.

Grav 2.0.0 before 2.2.18, and earlier 1.x releases before 1.7.53.7, contain a password reset poisoning flaw. An anonymous attacker can forge the CloudFront-Forwarded-Proto header during a forgot-password request. The advisory says the resulting email link can point to the attacker's host and expose the reset token, including for super administrators.

The high score reflects confidentiality impact and no required privileges. The attack still depends on the deployed proxy path accepting the header and on the victim using the generated link. Those conditions are common in content sites that sit behind CDNs.

Administrators should upgrade to Grav 2.2.18 or 1.7.53.7 according to the release line. They should also verify which proxy headers reach PHP. A network boundary that strips client-supplied forwarding headers is as important as the package update.

Reset URLs should be built from a configured canonical base URL, not from request-controlled scheme or host data. If multiple domains are supported, resolve the tenant from an authenticated application setting or an allowlisted Host value. Never trust Forwarded, X-Forwarded-* or CDN-specific headers unless the immediate peer is a known proxy.

Security teams can test the behavior without compromising an account. Send a reset request through the normal edge, add an unexpected forwarded scheme, and inspect whether the mail template changes origin. Repeat with a direct origin connection to confirm that the origin refuses untrusted forwarding headers.

After a suspected poisoning event, invalidate outstanding reset tokens for affected users and review mail delivery logs for unusual link origins. Rotate higher-value credentials if an administrator followed a modified link. The application fix prevents new links from inheriting the forged origin, but it cannot recover a token already delivered to an attacker.

References