← Back to results
Vulnerability record · public intelligence
CVE-2026-52762
HIGH

YesWiki: Authenticated (Admin) Server-Side Template Injection to Remote Code Execution via Bazar Semantic Templates

Published Sep 4, 2026 · Updated Nov 3, 2026

Severity · CVSSHIGH · Not scored
Known exploitationNot listed
EPSS / likelihood0.78%
QFinch risk scoreNot available

Original summary

Normalized public record · Updated Nov 3, 2026

YesWiki: Authenticated (Admin) Server-Side Template Injection to Remote Code Execution via Bazar Semantic Templates

Publisher and source text is retained separately from QFinch interpretation.

QFinch assessment

YesWiki Bazar contains a stored Server-Side Template Injection (SSTI) vulnerability in the semantic template feature that can be escalated to confirmed Remote Code Execution (RCE). An authenticated administrator can place arbitrary Twig expressions into the Semantic template (Twig) field (bnsemtemplate), and that content is later executed server-side when public semantic endpoints are requested. This was first confirmed through a harmless proof payload where {{ 7 7 }} was rendered as 49 through the public JSON-LD endpoint. The finding was then further validated locally by storing a Twig payload that invoked a system-level callable, resulting in command execution and an interactive shell on the test machine. Because the payload is stored in the form configuration and later triggered through a public endpoint, this issue is both persistent and remotely triggerable after an administrator plants the malicious template.

Potential impact

An authenticated administrator can inject arbitrary Twig expressions into Bazar semantic templates, and those expressions are executed server-side when public semantic endpoints are requested. In the validated environment, this leads to confirmed Remote Code Execution. An attacker with administrator access can: - execute arbitrary Twig expressions on the server - store a persistent payload in form configuration - have that payload triggered later by unauthenticated requests to public semantic endpoints - execute operating-system commands on the host - gain interactive shell access to the underlying server - pivot from application-level administration to full server compromise This breaks the expected trust boundary between application administration and host-level execution. In practical terms, YesWiki administrator privileges become sufficient to obtain command execution on the server in affected deployments.

Technical context

The vulnerable behavior is in the Bazar semantic rendering flow. The administrator-editable fields: - bnsemtemplate - bnsemreversetemplate allow Twig template content to be stored inside a form definition. That content is later rendered by the backend semantic transformer through TemplateEngine::renderFromStringNoEscape(), which passes the user-controlled string into Twig for execution. Relevant sink: The rendering helper evaluates the supplied string as a live Twig template: This is unsafe because administrator-controlled semantic template text is executed as server-side Twig code rather than treated as inert data. In the validated environment, Twig expressions were first confirmed to execute through a harmless arithmetic payload and were then escalated to operating-system-level command execution by invoking a callable through Twig. The public trigger path used during validation was: The attack chain is: 1. An administrator stores malicious Twig code in the semantic template field. 2. YesWiki saves that payload in the form configuration. 3. A later request to the public semantic endpoint causes the backend to render and execute the stored Twig. 4. Because the Twig environment is not adequately constrained, the stored payload can escalate from template execution to system command execution.

Evidence: public source records

Affected products

Affected scope reported by the available public evidence
Affected package, product or rangeFix status
Consult the referenced vendor advisory for affected versions.Consult source advisory

Matching a version is only one part of assessing exposure. QFinch has not assessed your environment on this public page.

Remediation

Apply the vendor-supported fixed release or mitigation, then verify the affected component is no longer reachable.

  1. Confirm the affected product and reachable code path exist in your environment.
  2. Apply the vendor-supported patch or mitigation from the primary advisory.
  3. Rescan the exact deployed revision and retain verification evidence.
Review primary references

Evidence coverage

FIRST-EPSSCVE-LIST-V5
SSVC priority
LOW
Confidence
Not available
Aliases
None reported

Scores appear only when corresponding evidence exists. Missing data is never interpreted as zero risk.

Sources and record history

  1. Security advisory ↗
  2. Patch commit ↗
  3. Source repository ↗

Record history

Published Sep 4, 2026 · Last refreshed Nov 3, 2026