Skip to main content

CVE-2023-31506 — Cross-site scripting (XSS) vulnerability in...

MEDIUM

Cross-site scripting (XSS) vulnerability in Grav

Published February 9, 2024Updated September 10, 2026Source: OSV

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.

Check my composer.lock

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).

PackageFixed 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-79
    Cross-site Scripting (XSS)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 5.4 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

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

CVSS Score
5.4

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
0.58%
EPSS percentile: 41.5

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

GHSA-xrf8-cmrg-7436

Related CVEs

  • CVE-2026-42613
    CRITICAL

    Grav Vulnerable to Privilege Escalation via Missing Server-Side Validation of groups/access

  • CVE-2026-64850
    HIGH

    Grav: Remote code execution via unrestricted callable in Blueprint::dynamicData()

  • CVE-2025-66299
    HIGH

    Grav is Vulnerable to Security Sandbox Bypass with SSTI (Server Side Template Injection)

  • CVE-2025-66295
    HIGH

    Grav vulnerable to Path traversal / arbitrary YAML write via user creation leading to Account Takeover / System Corruption

  • CVE-2026-42608
    HIGH

    Grav has Unauthenticated Path Traversal & Arbitrary File Write in its FormFlash component

  • CVE-2026-72695
    HIGH

    Grav: Path Traversal in MediaUploadTrait::deleteFile() Allows Arbitrary File Deletion

  • CVE-2025-66300
    HIGH

    Grav is vulnerable to Arbitrary File Read

  • CVE-2026-72819
    HIGH

    Grav CMS vulnerable to remote code execution via .zip file upload

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my composer.lock