CVE-2024-35498
PHP vulnerability analysis and mitigation

Overview

A cross-site scripting (XSS) vulnerability was discovered in Grav CMS version 1.7.45. The vulnerability allows attackers to execute arbitrary web scripts or HTML via a crafted payload, particularly affecting users with restricted page creation privileges (NVD, Medium Blog).

Technical details

The vulnerability exists due to insufficient input validation in the page creation functionality. Users with restricted page creation privileges can bypass JavaScript restrictions by exploiting the ondblclick event in HTML tags, specifically using the anchor tag. While direct JavaScript insertion is blocked, attackers can leverage HTML events to execute malicious scripts. The vulnerability has been assigned a CVSS v3.1 Base Score of 6.1 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N (NVD).

Impact

When exploited, this vulnerability allows attackers to execute arbitrary JavaScript code in the context of other users' browsers, including administrators. The impact extends to all users who visit the affected pages, potentially leading to session hijacking, data theft, or further system compromise (GitHub POC).

Exploitability

The vulnerability is exploitable by users who have page creation and editing privileges. An attacker can create a malicious page containing specially crafted HTML anchor tags with event handlers that load and execute external JavaScript code. The exploitation has been demonstrated through proof-of-concept code that uses the ondblclick event to trigger the XSS payload (Medium Blog).

Mitigation and workarounds

As of the current information available, there is no official patch released. However, administrators should implement robust input validation and content filtering measures to prevent the execution of unauthorized scripts. Additionally, restricting the use of dangerous HTML tags and implementing proper content security policies can help mitigate the risk (GitHub POC).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-59989CRITICAL9.2
  • PHP logoPHP
  • phalcon/cphalcon
NoYesAug 21, 2026
CVE-2026-63135HIGH8.2
  • PHP logoPHP
  • yourls/yourls
NoYesAug 21, 2026
GHSA-p2ch-c2c3-4xm5MEDIUM6.1
  • PHP logoPHP
  • winter/wn-backend-module
NoYesAug 20, 2026
GHSA-8hgv-xc77-jmcrMEDIUM5.1
  • PHP logoPHP
  • getgrav/grav
NoYesAug 21, 2026
GHSA-hq84-x37p-j6q5MEDIUM4.5
  • PHP logoPHP
  • winter/wn-backend-module
NoYesAug 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management