CVE-2026-78140
Received Received - Intake

Improper Template Neutralization in UJCMS

Vulnerability report for CVE-2026-78140, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-23

Last updated on: 2026-08-23

Assigner: VulDB

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-23
Last Modified
2026-08-23
Generated
2026-08-24
AI Q&A
2026-08-23
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
dromara ujcms to 10.1.3 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-791 The product receives data from an upstream component, but does not completely filter special elements before sending it to a downstream component.
CWE-1336 The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-78140 is a Server-Side Template Injection (SSTI) vulnerability in UJCMS version 10.1.3. It allows backend users with template editing privileges to inject malicious FreeMarker expressions or code into template files via the /api/backend/ext/web-file-template endpoint. The flaw occurs because template content is stored without sanitization and executed directly when rendered.

Detection Guidance

To detect this SSTI vulnerability in UJCMS 10.1.3, check if the /api/backend/ext/web-file-template endpoint allows template modifications without sanitization. Test by injecting a harmless FreeMarker expression like ${7*7} in the homepage template via authenticated backend access. If the expression evaluates to 49, the vulnerability exists.

Impact Analysis

An attacker could exploit this to inject stored XSS payloads, stealing visitor credentials or performing actions on their behalf. For example, an attacker could modify the homepage template to include a script that sends cookies to a remote server. This could lead to unauthorized access, data theft, or defacement of the website.

Compliance Impact

This vulnerability could lead to unauthorized access to sensitive data, violating GDPR's data protection principles and HIPAA's security requirements. Non-compliance may result in legal penalties, reputational damage, and loss of trust from users or customers.

Mitigation Strategies

Immediately update UJCMS to a patched version. If unavailable, implement template content validation to block dangerous FreeMarker directives, inline scripts, and event handlers. Disable risky FreeMarker features by setting api_builtin_enabled: false in the configuration.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-78140. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart