CVE-2025-2491 Dromara ujcms Edit Template File Page WebFileTemplateController.java update cross site scripting
Remote attackers can inject malicious scripts via the template editing feature, potentially leading to code execution or account takeover.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2025-2491?
CVE-2025-2491 is a medium-severity cross-site scripting vulnerability in Dromara ujcms, published on 18 Mar 2025. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
A vulnerability classified as problematic has been found in Dromara ujcms 9.7.5. This affects the function update of the file /main/java/com/ujcms/cms/ext/web/backendapi/WebFileTemplateController.java of the component Edit Template File Page. The manipulation leads to cross site scripting. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used.
Which versions are affected by CVE-2025-2491?
It affects 1 product.
Products include Ujcms Ujcms.
How do I fix CVE-2025-2491?
No fix has been published for CVE-2025-2491 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2025-2491 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-2491 exists.
Other vulnerabilities in Dromara ujcms
Sources
Also known as GHSA-j5w5-3c3j-vg23.