Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft HTTP request with forged Host header
-
DeliverySubmit to Grav invitation endpoint
-
ExploitGrav sends email with attacker-domain link
-
ExecutionVictim clicks poisoned invitation URL
-
PersistAttacker captures one-time invitation token
-
ImpactReplay token to register attacker-controlled account
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication DNS-independent verification
|
| Exploitation Conditions | The user invitation feature must be in active use - the vulnerability is triggered at the moment an invitation email is dispatched from a request bearing a forged Host header. The CVSS 4.0 PR:N metric suggests the invitation endpoint may be reachable without authentication, but this has not been independently confirmed; if Grav requires at minimum editor or admin credentials to send invitations (typical CMS behavior), the attacker must hold those credentials or induce a legitimate privileged user to send an invitation from a request the attacker has manipulated. A victim must click the poisoned link for the token to be captured - passive receipt of the email is not sufficient. Deployments that have disabled the invitation workflow, or that enforce Host header validation at a reverse proxy layer, are not exploitable through this path. |
| Impact | The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N) scores at 8.7, reflecting network-accessible, low-complexity exploitation with high confidentiality impact. The PR:N (no privileges required) claim is the metric most in need of independent verification: in most CMS architectures, sending invitations requires at least low-privilege authenticated access, and if that is true of Grav, exploitability is meaningfully lower than the provided vector suggests. The UI:N metric similarly warrants scrutiny - practical exploitation requires a victim to click the poisoned link, introducing a real-world friction point not captured by that metric. No EPSS score was included in the available intelligence, no active exploitation is confirmed (not in CISA KEV), and no public POC has been identified at time of analysis. Taken together, the actual exploitation risk is somewhat lower than the raw CVSS score implies: this is a high-severity design gap that becomes a viable attack only when invitations are actively sent and victims act on the email. |
| Exploit ScenarioDerived | An attacker sends an HTTP POST request to Grav's invitation-sending endpoint with a spoofed Host header (e.g., Host: attacker.example.com), triggering an invitation email to a targeted user whose address is known or guessed. The victim receives a legitimate-looking email and clicks the invitation link, which navigates their browser to attacker.example.com with the genuine one-time token appended as a URL parameter. The attacker's server logs the token, which can then be replayed directly against the real Grav site to complete account registration under attacker control. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 25, 2026
Host header injection in Grav CMS before 3.9.2 allows attackers to poison outgoing invitation emails, replacing the legitimate site URL with an attacker-controlled domain in token-bearing links sent via the sendInvitationEmail() function. The vulnerability exploits a gap in Grav's existing Host header defenses: the require_trusted_host protection was applied only to password reset flows, leaving invitation emails without equivalent validation. When a poisoned invitation email is delivered and the recipient clicks the link, the one-time invitation token is transmitted to the attacker's server rather than the legitimate site. No public exploit has been identified at time of analysis, and the CVE is not listed in the CISA KEV catalog, though the reported CVSS 4.0 score of 8.7 reflects high confidentiality risk from token capture.
RemediationAI
Upgrade to Grav CMS 3.9.2 or later, which applies consistent Host header validation to the sendInvitationEmail() function in line with the existing require_trusted_host protection. The vendor advisory at https://github.com/getgrav/grav/security/advisories/GHSA-69vf-mjxw-x79j should be consulted for patch details. If immediate patching is not feasible, disable the user invitation feature entirely until the update can be applied - this eliminates the attack surface with no collateral effect on other Grav functionality. As an additional compensating control, configure a reverse proxy (e.g., nginx or Traefik) with a strict Host header allowlist so that any inbound request whose Host value does not match the canonical site domain is rejected before reaching Grav; note that this approach requires careful configuration to avoid breaking legitimate vhost setups and must be tested in staging before production deployment.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Grav is a flat-file PHP CMS (CPE: cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*) that supports a user invitation workflow for onboarding new accounts. The vulnerability arises because PHP web applications commonly construct absolute URLs in server-generated email content by reading the HTTP Host header from the incoming request - a value the client fully controls. Grav's sendInvitationEmail() function uses this unvalidated Host header to build the invitation link, so an attacker who controls the Host header value in the triggering request can substitute an arbitrary domain. The tagged CWE-350 references reliance on attacker-influenced resolution for a security-critical decision, mapping loosely here to the trust placed in the Host header without verification; a closer root-cause classification would be CWE-20 (Improper Input Validation). Notably, Grav does implement a require_trusted_host mechanism, confirming awareness of Host header risks, but the guard was not applied consistently across all email-generating code paths - a partial-fix antipattern that commonly leaves invitation and notification flows exposed.
Know when Grav gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Invitation sending typically requires low-privilege CMS access (PR:L); victim must click the link (UI:R); token capture crosses into victim's authorization scope (S:C).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Grav before 3.9.2 fails to validate untrusted Host headers in the sendInvitationEmail() function when constructing token-bearing invitation links. Attackers can manipulate the Host header to poison invitation links and redirect users to attacker-controlled domains, bypassing the require_trusted_host protection which only covers password reset flows.
Executive ViewAI
Grav CMS versions before 3.9.2 contain a host header injection vulnerability in the sendInvitationEmail() function that allows attackers to redirect users to attacker-controlled domains and capture one-time authentication tokens (CVSS 8.7). Organizations using Grav's user invitation feature face direct risk of unauthorized account access and credential compromise. No vendor patch is currently available, creating urgent need for compensating controls.
If invitation emails are operationally critical: Deploy a Web Application Firewall with strict Host header validation to reject requests with non-trusted hosts; implement rate limiting on invitation link generation; require additional email confirmation before invitations are accepted; and establish monitoring for redirect anomalies. If invitation functionality can be suspended temporarily, use alternative verification methods (phone, SMS, or manual verification). Establish daily monitoring of Grav security advisories for patch availability (specifically version 3.9.2+), as these mitigations do not eliminate the underlying vulnerability.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Related Vulnerabilities in Grav CMS Access Control and Traversal Flaws
View all 9Server-side template injection (SSTI) in Grav (getgrav/grav) prior to 1.8.0-beta.27 allows an authenticated attacker hol
Broken access control in Grav CMS (CWE-285) before 1.8.0-beta.27 lets an authenticated editor-level user escalate their
A Remote Code Execution (RCE) vulnerability in Grav CMS v1.7.48 allows an authenticated admin to upload a malicious plug
Grav is a file-based Web platform. Rated critical severity (CVSS 9.9), this vulnerability is remotely exploitable, low a
GravCMS 1.10.7 allows unauthenticated remote attackers to write arbitrary YAML configuration files, leading to full serv
Remote code execution in Grav CMS 2.0.4 (fixed in 2.0.7) lets an authenticated user holding the admin.pages or api.pages
Remote code execution in Grav CMS before 2.0.15 allows attackers holding page-edit or blueprint-config privileges to wri
Vertical privilege escalation in Grav CMS before 2.0.14 lets a delegated administrator holding only the admin.users perm
Stored cross-site scripting in Grav CMS before 2.0.15 lets authenticated editors smuggle JavaScript event handlers past
Server-side request forgery (SSRF) in Grav CMS versions prior to 1.7.49.5 allows remote authenticated attackers to make
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, Grav CMS is vulnerable to a Server-Side Template Injection (S
Remote code execution in Grav CMS before 2.0.13 allows authenticated low-privilege users to plant and execute arbitrary
EUVD-2026-65207
GHSA-6c2c-797q-5r9x
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB