CVE-2024-35498: Grav Cross-site Scripting Vulnerability in Grav v1.7.45

getgrav/grav Updated 14 Dec 2025

Summary

06/01/2025
No i
Low
2.0

CVE-2024-35498: Grav Cross-site Scripting vulnerability. Affects getgrav/grav versions < 1.7.45. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Grav is a modern open-source flat-file CMS (Content Management System) that allows users to create and manage websites without the need for a traditional database. It is known for its speed, flexibility, and ease of use, making it a popular choice among developers and content creators. However, like any software, Grav is susceptible to vulnerabilities, including cross-site scripting (XSS) issues, which can compromise the security of web applications.

Vulnerability Detail

The vulnerability identified as CVE-2024-35498 is a cross-site scripting (XSS) flaw present in Grav version 1.7.45. This vulnerability allows attackers to inject and execute arbitrary web scripts or HTML code through a crafted payload. The origin of this issue lies in insufficient input validation, which can lead to unauthorized access and manipulation of user data. If exploited, this vulnerability can result in session hijacking, defacement of web pages, or the distribution of malware to users visiting the affected site.

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

As a temporary workaround, users can implement input sanitization and validation on any user-generated content to prevent the execution of malicious scripts. This can be done by using libraries or functions that escape HTML characters, ensuring that any input is treated as plain text rather than executable code.

Conclusion

The Grav Cross-site Scripting vulnerability (CVE-2024-35498) poses a significant risk to users of Grav v1.7.45. It is crucial to update to the latest version to protect against potential attacks. By following the recommended steps and utilizing tools like Vulert, users can ensure their applications remain secure.

See every vulnerability recorded for getgrav/grav →

Share this vulnerability

FAQ

Cross-site scripting (XSS) is a security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users, potentially leading to data theft or unauthorized actions.

You can check if your Grav installation is affected by using Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to analyze your application without any signup.

The risks include session hijacking, unauthorized access to user accounts, data manipulation, and the potential spread of malware to users visiting the compromised site.

Yes, implementing proper input validation, output encoding, and using security libraries can help prevent XSS vulnerabilities in web applications.

If an immediate update is not possible, ensure that you implement input sanitization and validation as a temporary measure to mitigate the risk of exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for getgrav/grav.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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