Cross-site scripting (XSS) vulnerability in Grav

getgrav/grav Updated 02 Oct 2025

Summary

09/02/2024
No i
Moderate
5.4

CVE-2023-31506: Cross-site scripting (XSS) vulnerability in Grav. Affects getgrav/grav versions 0.8.0 – 1.7.9. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Grav is an open-source flat-file CMS that enables users to create and manage websites with ease. It offers a flexible and intuitive interface, allowing content creators to focus on their work without the need for complex technical knowledge. However, Grav versions 1.7.44 and earlier are susceptible to a cross-site scripting (XSS) vulnerability.

Vulnerability Detail

The identified vulnerability in Grav versions 1.7.44 and before is a cross-site scripting (XSS) flaw. This vulnerability allows remote authenticated attackers to execute arbitrary web scripts or HTML by exploiting the onmouseover attribute of an ISINDEX element. If successfully exploited, an attacker could inject malicious code into a website, potentially leading to various security risks and compromising user data.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If updating Grav immediately is not feasible, a temporary workaround can be implemented. This involves disabling the affected ISINDEX element or removing any instances of the onmouseover attribute from the codebase. By doing so, the potential attack vector is eliminated. However, it is crucial to update to the latest version as soon as possible to ensure comprehensive security.

Conclusion

In conclusion, Grav versions 1.7.44 and earlier are vulnerable to a cross-site scripting (XSS) flaw. To mitigate this risk, it is crucial to update Grav to version 1.7.45 or later. Additionally, a temporary workaround can be implemented by disabling the affected ISINDEX element or removing the onmouseover attribute. For further assistance and support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for getgrav/grav →

Share this vulnerability

FAQ

Grav is an open-source flat-file CMS that simplifies website creation and management.

Grav versions 1.7.44 and earlier are vulnerable to this cross-site scripting (XSS) flaw.

If exploited, this vulnerability allows attackers to execute arbitrary web scripts or HTML, potentially compromising user data and website security.

Updating Grav to version 1.7.45 or later resolves this vulnerability. It is recommended to update as soon as possible.

A temporary workaround involves disabling the affected ISINDEX element or removing the onmouseover attribute from the codebase. However, updating to the latest version is essential for comprehensive security.

Related vulnerabilities

Recent vulnerabilities recorded for getgrav/grav.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback