CVE-2023-31506 — Cross-site scripting (XSS) vulnerability in...
Cross-site scripting (XSS) vulnerability in Grav
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.58%). Schedule for your next planned update.
Does your project use an affected getgrav/grav version?
Paste your composer.lock to check it for CVE-2023-31506 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
A cross-site scripting (XSS) vulnerability in Grav versions 1.7.44 and before, allows remote authenticated attackers to execute arbitrary web scripts or HTML via the onmouseover attribute of an ISINDEX element.
Advisory Timeline
- First published February 9, 2024 (1021 days ago).
- Last revised September 10, 2026 — 944 days after initial publication.
Affected Packages (1)
Affects 1 ecosystem: Packagist (1).
| Package | Fixed In |
|---|---|
| getgrav/grav Packagist · Affected: 0.8.0, 0.9.0, 0.9.1, 0.9.10 (+356 more) | Range-based data available |
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) 5.4 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
References
Frequently Asked Questions
- What is CVE-2023-31506?
- Cross-site scripting (XSS) vulnerability in Grav. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.4/10).
- How do I check if my project is affected by CVE-2023-31506?
- CVE-2023-31506 affects getgrav/grav. It has a 0.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-31506 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is a below-median EPSS score — only 41.5% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-42613CRITICAL
Grav Vulnerable to Privilege Escalation via Missing Server-Side Validation of groups/access
- 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
- CVE-2025-66300HIGH
Grav is vulnerable to Arbitrary File Read
- CVE-2026-72819HIGH
Grav CMS vulnerable to remote code execution via .zip file upload