CVE-2026-52762: YesWiki RCE via Server-Side Template Injection in Bazar Semantic Templates

CVE-2026-52762 · Severity: high · CVSS 4 · Published 2026-09-05

YesWiki, a collaborative wiki platform, contains a vulnerability in its Bazar extension that allows an administrator to inject malicious code into template fields. This code is later executed by the server when certain public pages are accessed, potentially allowing an attacker to take full control of the underlying server. This flaw breaks the security boundary between application management and server-level operations, risking total service compromise.

Technologies: yeswiki/yeswiki (Packagist), YesWiki. Vendors: Packagist, YesWiki.

Quick answers

Is CVE-2026-52762 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-52762 being exploited in the wild.
How severe is CVE-2026-52762?
High severity, with a CVSS score of 4, published 5 September 2026.
Which products and versions are affected?
yeswiki/yeswiki (Packagist) < 4.6.6, ECOSYSTEM:introduced=0,fixed=4.6.6; YesWiki < 4.6.6.
Is there a fix for CVE-2026-52762?
Yes. yeswiki/yeswiki (Packagist): upgrade to 4.6.6 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-52762 attacked?
It is attacked over the network, in a web application.
Am I affected by CVE-2026-52762?
Check whether you run yeswiki/yeswiki (Packagist) or YesWiki 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.

How to fix

  • yeswiki/yeswiki (Packagist): upgrade to 4.6.6 or later
    composer require yeswiki/yeswiki:^4.6.6

Technical details

A stored Server-Side Template Injection (SSTI) vulnerability exists in YesWiki's Bazar extension within the 'bn_sem_template' and 'bn_sem_reverse_template' fields. An authenticated administrator can inject arbitrary Twig expressions which are subsequently processed by the 'TemplateEngine::renderFromStringNoEscape()' method without adequate sandboxing. The vulnerability is triggered when the backend renders these templates during requests to public semantic endpoints, such as JSON-LD API paths. Because the Twig environment is unconstrained, an attacker can invoke system-level callables to achieve full Remote Code Execution (RCE) and gain shell access. The issue is addressed in version 4.6.6.

Affected products

  • YesWiki yeswiki < 4.6.6

Identifiers

  • CVE-2026-52762
  • GHSA-65p8-9433-jpcp

Timeline

  • 2026-06-02: disclosed
  • 2026-06-02: patched: Fix committed to repository
  • 2026-07-09: advisory

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.