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

High severity, published 2026-07-09. Update yeswiki/yeswiki to 4.6.6 or later: composer update yeswiki/yeswiki.

Canonical URL: https://buzzphp.com/security/ghsa-65p8-9433-jpcp · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high |
| Published | 2026-07-09 |
| Updated | 2026-07-09 |
| CVE | [CVE-2026-52762](https://nvd.nist.gov/vuln/detail/CVE-2026-52762) |
| GHSA | [GHSA-65p8-9433-jpcp](https://github.com/advisories/GHSA-65p8-9433-jpcp) |
| Weakness | CWE-1336 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| yeswiki/yeswiki | < 4.6.6 | 4.6.6 |

## What to do

Update yeswiki/yeswiki to 4.6.6 or later: composer update yeswiki/yeswiki.

Check which version you run with `composer show yeswiki/yeswiki`, and every affected package with `composer audit`.

## About this advisory

Summary 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.

## Links

- [GHSA-65p8-9433-jpcp on GitHub](https://github.com/advisories/GHSA-65p8-9433-jpcp)
- [CVE-2026-52762 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-52762)
- [All Composer security advisories](https://buzzphp.com/security)
