CVE-2026-8740 Sanluan PublicCMS templateResult API TemplateResultDirective.java execute special elements used in a template engine

Medium 5.3 Published Updated

Remote attackers can execute arbitrary code via template injection in the PublicCMS templateResult API, requiring permissions.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-8740?

CVE-2026-8740 is a medium-severity code injection vulnerability in Sanluan PublicCMS, published on 17 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A flaw has been found in Sanluan PublicCMS 5.202506.d. The impacted element is the function execute of the file publiccms-core/src/main/java/com/publiccms/views/directive/tools/TemplateResultDirective.java of the component templateResult API. This manipulation of the argument templateContent causes improper neutralization of special elements used in a template engine. The attack is possible to be carried out remotely. The exploit has been published and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

Weakness: CWE-791, CWE-1336

Which versions are affected by CVE-2026-8740?

How do I fix CVE-2026-8740?

No fix has been published for CVE-2026-8740 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-8740 being exploited?

There is no known exploitation of CVE-2026-8740 in the wild and no public exploit code.

Sources

Also known as GHSA-pqmw-x4mq-chh8.

Is CVE-2026-8740 in your software?

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

Check your SBOMs for free