CVE-2025-46198
Published: 25 July 2025
Summary
CVE-2025-46198 is a high-severity Cross-site Scripting (CWE-79) vulnerability in Getgrav Grav. Its CVSS base score is 8.8 (High).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 27.9% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
The strongest mitigations our analysis identified are NIST 800-53 SI-10 (Information Input Validation) and SI-15 (Information Output Filtering).
Deeper analysis
CVE-2025-46198 is a Cross-Site Scripting (XSS) vulnerability affecting the Grav content management system in versions 1.7.46, 1.7.47, and 1.7.48. The issue, classified under CWE-79, enables attackers to execute arbitrary code by exploiting the onerror attribute of an img element. Published on 2025-07-25, it carries a CVSS v3.1 base score of 8.8 (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H), reflecting high severity due to its potential for significant impact.
Attackers can exploit this vulnerability remotely over the network with low attack complexity and no required privileges, though successful exploitation depends on user interaction. Any unauthenticated adversary capable of injecting or tricking users into processing malicious img elements on a vulnerable Grav instance can achieve arbitrary code execution in the victim's browser context, compromising confidentiality, integrity, and availability at a high level.
Mitigation details are outlined in advisories available at https://rapid-echo-f9c.notion.site/Grav-XSS-1dbaf8998a078072bb30ffc9b9e7ab4a?pvs=4 and https://tyojong.tistory.com/1.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2025-22750
Vulnerability details
Cross Site Scripting vulnerability in grav v.1.7.48, v.1.7.47 and v.1.7.46 allows an attacker to execute arbitrary code via the onerror attribute of the img element
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise TechniquesAI
Why these techniques?
XSS vulnerability in public-facing Grav CMS directly enables remote exploitation of the application for arbitrary code execution in victim browsers.
CVEs Like This One
Affected Assets
Mitigating Controls
Mitigating Controls (NIST 800-53 r5) AI
SI-2 requires timely identification, reporting, and correction of flaws like the XSS vulnerability in Grav CMS versions 1.7.46-1.7.48, directly mitigating the issue through patching.
SI-15 mandates filtering of information output to prevent execution of malicious scripts injected via img onerror attributes in rendered content.
SI-10 enforces validation of inputs to block malicious img elements with onerror attributes from being accepted into the Grav CMS.