CVE-2022-0743
PHP vulnerability analysis and mitigation

Overview

Cross-site Scripting (XSS) - Stored vulnerability was discovered in GitHub repository getgrav/grav prior to version 1.7.31. The vulnerability was assigned CVE-2022-0743 and was disclosed on February 28, 2022. This security issue affects the Grav content management system (NVD).

Technical details

The vulnerability has been assigned a CVSS v3.1 Base Score of 4.6 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N. The issue stems from improper entity sanitization in the XSS detection mechanism. The vulnerability was specifically related to the handling of HTML entities in the Security.php file, where the regular expression for cleaning up entities was incorrectly implemented (GitHub Patch).

Impact

The vulnerability could allow an authenticated attacker to execute stored cross-site scripting attacks, potentially leading to the exposure of sensitive information and unauthorized actions in the context of other users' sessions (NVD).

Exploitability

The vulnerability requires an authenticated user with low privileges to exploit and user interaction is required for successful exploitation. The attack can be performed remotely over the network (NVD).

Mitigation and workarounds

The vulnerability has been fixed in Grav version 1.7.31. Users are advised to upgrade to this version or later to address the security issue. The fix involves correcting the regular expression pattern used for entity sanitization from '!(&#0+[0-9]+)!u' to '!(&#[0-9]+)!u' (GitHub Patch).

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

GHSA-wg23-69c2-gjc8CRITICAL9.1
  • PHP logoPHP
  • craftcms/cms
NoYesAug 07, 2026
CVE-2026-71488HIGH7.5
  • PHP logoPHP
  • php-league-commonmark
NoYesAug 06, 2026
CVE-2026-62996MEDIUM6.9
  • PHP logoPHP
  • smarty/smarty
NoYesAug 07, 2026
CVE-2026-62992MEDIUM6.9
  • PHP logoPHP
  • smarty/smarty
NoYesAug 07, 2026
CVE-2026-71478MEDIUM6.1
  • PHP logoPHP
  • league/commonmark
NoYesAug 06, 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