CVE-2026-78140 Dromara UJCMS web-file-template Endpoint WebFileTemplateController.java update special elements in template engine

Medium 5.1 Published Updated

Remote attackers with permissions can inject malicious code into the template engine via the web-file-template endpoint, leading to code execution.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-78140?

CVE-2026-78140 is a medium-severity code injection vulnerability in Dromara UJCMS, published on 23 Aug 2026. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

A flaw has been found in Dromara UJCMS up to 10.1.3. The impacted element is the function update of the file src/main/java/com/ujcms/cms/ext/web/backendapi/WebFileTemplateController.java of the component web-file-template Endpoint. Executing a manipulation can lead to improper neutralization of special elements used in a template engine. The attack can be launched remotely. The exploit has been published and may be used.

Weakness: CWE-791, CWE-1336

Which versions are affected by CVE-2026-78140?

How do I fix CVE-2026-78140?

No fix has been published for CVE-2026-78140 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-78140 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-78140 exists.

Sources

Also known as GHSA-m2hx-w98g-mrrp.

Is CVE-2026-78140 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free