Cyber Resilience

CVE-2025-46198

HighPublic PoC

Published: 25 July 2025

Published
25 July 2025
Modified
20 August 2025
KEV Added
Patch
CVSS Score v3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS Score 0.0068 72.1th percentile
Risk Priority 18 60% EPSS · 20% KEV · 20% CVSS

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

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

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
Why these techniques?

XSS vulnerability in public-facing Grav CMS directly enables remote exploitation of the application for arbitrary code execution in victim browsers.

Confidence: HIGH · MITRE ATT&CK Enterprise v18.1

CVEs Like This One

CVE-2025-46199Same product: Getgrav Grav
CVE-2026-42611Same product: Getgrav Grav
CVE-2026-42612Same product: Getgrav Grav
CVE-2021-47812Same product: Getgrav Grav
CVE-2026-42608Same product: Getgrav Grav
CVE-2026-29924Same product: Getgrav Grav
CVE-2025-66294Same product: Getgrav Grav
CVE-2025-66299Same product: Getgrav Grav
CVE-2025-50286Same product: Getgrav Grav
CVE-2026-44738Same product: Getgrav Grav

Affected Assets

getgrav
grav
1.7.46 — 1.7.48

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

prevent

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.

prevent

SI-15 mandates filtering of information output to prevent execution of malicious scripts injected via img onerror attributes in rendered content.

prevent

SI-10 enforces validation of inputs to block malicious img elements with onerror attributes from being accepted into the Grav CMS.

References