GHSA-65p8-9433-jpcp: YesWiki: Authenticated (Admin) Server-Side Template Injection to Remote Code Execution via Bazar Semantic Templates
YesWiki Bazar contains a stored Server-Side Template Injection (SSTI) vulnerability in its semantic template feature that allows an authenticated administrator to inject arbitrary Twig template code. This code is executed server-side when public semantic endpoints are accessed, enabling remote code execution (RCE). The vulnerability arises because administrator-controlled Twig templates are rendered without adequate sandboxing or escaping. A proof-of-concept demonstrated both template evaluation and escalation to system-level command execution, resulting in an interactive shell on the server. The issue affects YesWiki versions prior to 4.6.6.
AI Analysis
Technical Summary
The vulnerability in YesWiki Bazar is a stored Server-Side Template Injection (SSTI) in the semantic template fields (`bn_sem_template` and `bn_sem_reverse_template`). An authenticated administrator can insert arbitrary Twig expressions into these fields, which are stored in the form configuration. When a public semantic endpoint (e.g., GET /api/forms/2/entries/json-ld) is requested, the backend renders these templates using Twig's `createTemplate()->render()` without escaping, executing the injected code server-side. This unsafe rendering allows escalation from template evaluation to remote code execution by invoking system-level callables within Twig. The vulnerability was confirmed by executing harmless arithmetic expressions and then by executing system commands that established an interactive shell on the server. The affected versions are all YesWiki releases before 4.6.6.
Potential Impact
An authenticated administrator can inject and store malicious Twig template code that is later executed by the server when public semantic endpoints are accessed. This leads to remote code execution on the server hosting YesWiki, allowing an attacker to execute arbitrary system commands with the privileges of the YesWiki process. The vulnerability is persistent and remotely triggerable, posing a critical risk to the confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict administrator access to trusted personnel only. Avoid using the semantic template feature or disable public semantic endpoints if possible to reduce exposure. Monitor vendor channels for updates regarding patches or official mitigations.
GHSA-65p8-9433-jpcp: YesWiki: Authenticated (Admin) Server-Side Template Injection to Remote Code Execution via Bazar Semantic Templates
Description
YesWiki Bazar contains a stored Server-Side Template Injection (SSTI) vulnerability in its semantic template feature that allows an authenticated administrator to inject arbitrary Twig template code. This code is executed server-side when public semantic endpoints are accessed, enabling remote code execution (RCE). The vulnerability arises because administrator-controlled Twig templates are rendered without adequate sandboxing or escaping. A proof-of-concept demonstrated both template evaluation and escalation to system-level command execution, resulting in an interactive shell on the server. The issue affects YesWiki versions prior to 4.6.6.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in YesWiki Bazar is a stored Server-Side Template Injection (SSTI) in the semantic template fields (`bn_sem_template` and `bn_sem_reverse_template`). An authenticated administrator can insert arbitrary Twig expressions into these fields, which are stored in the form configuration. When a public semantic endpoint (e.g., GET /api/forms/2/entries/json-ld) is requested, the backend renders these templates using Twig's `createTemplate()->render()` without escaping, executing the injected code server-side. This unsafe rendering allows escalation from template evaluation to remote code execution by invoking system-level callables within Twig. The vulnerability was confirmed by executing harmless arithmetic expressions and then by executing system commands that established an interactive shell on the server. The affected versions are all YesWiki releases before 4.6.6.
Potential Impact
An authenticated administrator can inject and store malicious Twig template code that is later executed by the server when public semantic endpoints are accessed. This leads to remote code execution on the server hosting YesWiki, allowing an attacker to execute arbitrary system commands with the privileges of the YesWiki process. The vulnerability is persistent and remotely triggerable, posing a critical risk to the confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict administrator access to trusted personnel only. Avoid using the semantic template feature or disable public semantic endpoints if possible to reduce exposure. Monitor vendor channels for updates regarding patches or official mitigations.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-65p8-9433-jpcp
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-52762"]
- Ecosystems
- ["Packagist"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a50ba7468715ace43580364
Added to database: 07/10/2026, 09:25:08 UTC
Last enriched: 07/10/2026, 09:56:56 UTC
Last updated: 07/10/2026, 09:56:56 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.