CVE-2025-46199

Cross Site Scripting vulnerability in grav v.1.7.48 and before allows an attacker to execute arbitrary code via a crafted script to the form fields

Critical · published July 25, 2025

CVSS v3.1
9.8
EPSS
1%
Percentile
58.2
In the wild
Unconfirmed
What it is

🚨 A crafted script in a form field is all it takes to inject arbitrary code in Grav versions 1.7.48 and earlier! 🔥 Think of it like a sneaky chef slipping a secret ingredient into your recipe. If no one checks the ingredients, it can completely change the dish! An attacker could gain control over the affected site, execute malicious scripts, steal sensitive user data, or even deface the website. The consequences could be absolutely devastating for both site owners and users, leading to major trust issues and potential data breaches.

Put simply

Think of it like a sneaky chef slipping a secret ingredient into your recipe. If no one checks the ingredients, it can completely change the dish! This Cross Site Scripting (XSS) vulnerability allows attackers to inject and execute arbitrary scripts through unvalidated form fields, leveraging the trust that users have in the site.

What to do

An attacker could gain control over the affected site, execute malicious scripts, steal sensitive user data, or even deface the website. The consequences could be absolutely devastating for both site owners and users, leading to major trust issues and potential data breaches. Immediately patch your Grav installation to version 1.7.49 or later. Additionally, review and sanitize all user input to prevent any similar vulnerabilities in the future. Implement Content Security Policy (CSP) to add an extra layer of protection. You've got this! By taking these steps, you're on your way to becoming a security hero! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00863 · 58.2th percentile
Published
2025-07-25T00:00Z
EPSS history
Timeline
  • 25 JUL 00:00Z
    Cross Site Scripting vulnerability in grav v.1.7.48 and before allows an attacker to execute arbitrary code via a crafted script to the form fields
    cvelistv5