# CVE-2026-8740: Sanluan PublicCMS SSTI and auth bypass in templateResult API

Source: https://junglewise.ai/threats/cve-2026-8740-sanluan-publiccms-ssti-and-auth-bypass-in-templateresult-api  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-17. Updated: 2026-05-17  
License: CC BY 4.0 with a link back

CVE-2026-8740 · Severity: medium · CVSS 6.3 · Published 2026-05-17

Sanluan PublicCMS, a content management system, contains a vulnerability in its template processing API. An attacker with low-level access can bypass security restrictions to run unauthorized commands or view sensitive server information, such as file paths and system configurations. This could lead to further exploitation of the server or unauthorized access to internal data.

Technologies: [Sanluan PublicCMS](https://junglewise.ai/threats/technologies/publiccms). Vendors: [Sanluan](https://junglewise.ai/threats/vendors/sanluan).

## Quick answers

**Is CVE-2026-8740 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-8740 being exploited in the wild.

**How severe is CVE-2026-8740?** Medium severity, with a CVSS score of 6.3, published 17 May 2026.

**Which products and versions are affected?** Sanluan PublicCMS 5.202506.d.

**Is there a fix for CVE-2026-8740?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-8740 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-8740?** Check whether you run Sanluan PublicCMS at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A Server-Side Template Injection (SSTI) vulnerability exists in the `templateResult` API of Sanluan PublicCMS 5.202506.d. The flaw is located in the `execute` function of `TemplateResultDirective.java`, where user-provided `templateContent` is evaluated as a FreeMarker template using the full web configuration. While direct HTTP access to sensitive directives is protected by `authorizedApis` checks, these checks are bypassed when directives are invoked internally via a template. An authenticated attacker with a low-privilege app token can exploit this to execute internal directives like `tools.systemProperties` or `tools.disk`, leading to the disclosure of server-side information. No official patch has been released by the vendor as of the disclosure date.

## Affected products

- Sanluan PublicCMS 5.202506.d

## Timeline

- 2026-05-17: disclosed: Vulnerability details and PoC published via VulDB and NVD.
- 2026-05-17: advisory

## References

- [https://vuldb.com/submit/809932](https://vuldb.com/submit/809932)
- [https://vuldb.com/vuln/364328](https://vuldb.com/vuln/364328)
- [https://vuldb.com/vuln/364328/cti](https://vuldb.com/vuln/364328/cti)
- [https://vulnplus-note.wetolink.com/share/ILcCnOvJ1fMc](https://vulnplus-note.wetolink.com/share/ILcCnOvJ1fMc)

## Related threats

- [Sanluan PublicCMS authorization bypass in trade payment](https://junglewise.ai/threats/cve-2026-121583-a-vulnerability-was-identified-in-sanluan-publiccms-5-this)
- [Sanluan PublicCMS authorization bypass in TradeRefundService](https://junglewise.ai/threats/cve-2026-120319-a-vulnerability-was-found-in-sanluan-publiccms-4-x-5-x-6-x-this)
- [PublicCMS insecure direct object reference in TradeAddressController](https://junglewise.ai/threats/cve-2026-110113-publiccms-through-v6-202608-a-contains-an-insecure-direct-object)
- [Sanluan PublicCMS hard-coded cryptographic key in private file access](https://junglewise.ai/threats/cve-2026-8739-sanluan-publiccms-hard-coded-cryptographic-key-in-private-file)
- [Sanluan PublicCMS business logic error in Trade Payment Flow](https://junglewise.ai/threats/cve-2026-8738-sanluan-publiccms-business-logic-error-in-trade-payment-flow)
