CVE-2025-28010
Description
A cross-site scripting (XSS) vulnerability has been identified in MODX prior to 3.1.0. 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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Authenticated users can upload malicious SVG profile images in MODX prior to 3.1.0, leading to stored XSS when other users view the profile.
Vulnerability
Overview
A stored cross-site scripting (XSS) vulnerability exists in MODX CMS versions prior to 3.1.0. The root cause is insufficient sanitization of SVG files uploaded as profile images. SVG files can contain embedded JavaScript, and the application does not validate or filter the content before storing and serving them [1][2].
Exploitation
An authenticated user can upload a specially crafted SVG file containing malicious JavaScript code as their profile image. When other users view the attacker's profile or any page that displays the profile image, the embedded script executes in their browser. No additional privileges are required beyond a valid user account [2].
Impact
Successful exploitation allows arbitrary JavaScript execution in the context of the victim's session. This can lead to theft of session tokens, sensitive data exposure, and unauthorized actions performed on behalf of the victim. The attack can potentially be escalated to more severe attacks through initial script execution [1][2].
Mitigation
The vulnerability is fixed in MODX version 3.1.0 and later. Users are advised to upgrade to the latest version. No workaround is documented, but administrators should restrict SVG uploads or implement additional content security policies until an upgrade can be applied [1][2].
AI Insight generated on May 20, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
modx/revolutionPackagist | <= 3.1.0 | — |
Affected products
3- MODX/MODXdescription
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3News mentions
0No linked articles in our index yet.