CVE-2025-28010
PHP vulnerability analysis and mitigation

Overview

A cross-site scripting (XSS) vulnerability has been identified in MODX prior to version 3.1.0. The vulnerability was discovered in March 2025 and affects the profile image upload functionality. The vulnerability allows authenticated users to upload SVG files containing malicious JavaScript code as profile images, which gets executed in victims' browsers when viewing the profile image (CVE Database, GitHub POC).

Technical details

The vulnerability exists due to insufficient validation and sanitization of SVG file uploads in the profile image feature. When an authenticated user uploads a specially crafted SVG file containing embedded JavaScript code, the code gets executed in the context of other users' browsers when they view the profile image. The vulnerability has been assigned a CVSS v3.1 Base Score of 5.4 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N (CVE Database).

Impact

The vulnerability can lead to unauthorized execution of JavaScript code in victims' browsers, potentially resulting in session token theft, sensitive data exposure, and unauthorized actions performed on behalf of the victim. The impact is particularly concerning when administrative users view affected profile images, as it could lead to administrative session compromise (GitHub POC).

Mitigation and workarounds

Organizations should implement several security measures including: enforcing strict input validation to block harmful scripts or tags, implementing proper output encoding for user inputs, deploying a strong Content Security Policy (CSP) to block unauthorized scripts, and upgrading MODX CMS to version 3.1.0 or later which contains the fix for this vulnerability (GitHub POC).

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

CVE-2025-13828CRITICAL9
  • PHPPHP
  • mautic/core
NoYesDec 02, 2025
CVE-2025-13827HIGH8.8
  • PHPPHP
  • mautic/grapes-js-builder-bundle
NoYesDec 02, 2025
CVE-2025-66468HIGH7.6
  • PHPPHP
  • aimeos/ai-cms-grapesjs
NoYesDec 02, 2025
CVE-2025-65657MEDIUM6.5
  • PHPPHP
  • feehi/cms
NoNoDec 02, 2025
CVE-2025-65186MEDIUM6.1
  • PHPPHP
  • getgrav/grav
NoNoDec 02, 2025

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