CVE-2022-0743: Cross site scripting in getgrav/grav
4.6
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.42002%
CWE
Published
3/2/2022
Updated
2/3/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
getgrav/grav | composer | < 1.7.31 | 1.7.31 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The key vulnerability stemmed from improper entity sanitization in Security::detectXss. The commit diff shows the regex pattern was modified from checking for '�+[0-9]+' to '&#[0-9]+', indicating the original implementation missed entities without leading zeros. This function is explicitly responsible for XSS detection, and the patch directly addresses the sanitization gap. No other functions were modified in the security-related commit.