CVE-2026-42612 — Vulnerability in getgrav/grav — CVE Details
Grav Vulnerable to Publisher-Level Stored XSS via Unquoted Event Attributes
Summary
Advisory Timeline
- First published May 5, 2026 (160 days ago).
- Last revised September 10, 2026 — 127 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "getgrav/grav:^2.0.0-beta.2"
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: packagist (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| getgrav/grav | packagist | 0.8.0, 0.9.0, 0.9.1, 0.9.10 (+317 more) | 2.0.0-beta.2 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-79Cross-site Scripting (XSS)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
References
Frequently Asked Questions
- What is CVE-2026-42612?
- Grav Vulnerable to Publisher-Level Stored XSS via Unquoted Event Attributes This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.5/10).
- How do I check if my project is affected by CVE-2026-42612?
- CVE-2026-42612 affects getgrav/grav. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-42612 and 200,000+ other known vulnerabilities.
Severity & Exploitability
High exploitability or significant impact. Prioritize remediation within days.
Also Known As
Related CVEs
- CVE-2026-75827CRITICAL
Grav: Blueprint dynamic-data bare-function branch is denylist-gated and omits error_log, giving arbitrary file write
- CVE-2026-65608HIGH
Grav: FlexDirectory::dynamicDataField() executes arbitrary callables from blueprint data with no validation
- CVE-2025-66296HIGH
Grav vulnerable to Privilege Escalation in Grav Admin: Missing Username Uniqueness Check Allows Admin Account Takeover
- CVE-2026-64850HIGH
Grav: Remote code execution via unrestricted callable in Blueprint::dynamicData()
- CVE-2025-66299HIGH
Grav is Vulnerable to Security Sandbox Bypass with SSTI (Server Side Template Injection)
- CVE-2025-66295HIGH
Grav vulnerable to Path traversal / arbitrary YAML write via user creation leading to Account Takeover / System Corruption
- CVE-2026-42608HIGH
Grav has Unauthenticated Path Traversal & Arbitrary File Write in its FormFlash component
- CVE-2026-72695HIGH
Grav: Path Traversal in MediaUploadTrait::deleteFile() Allows Arbitrary File Deletion
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies