Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

GHSA-65p8-9433-jpcp: YesWiki: Authenticated (Admin) Server-Side Template Injection to Remote Code Execution via Bazar Semantic Templates

0
High
Published: 07/09/2026 (07/09/2026, 20:54:23 UTC)
Source: GCVE Database
Product: yeswiki/yeswiki

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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Affected software

Packagistghsa
yeswiki/yeswiki
Affected versions
<4.6.6

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/10/2026, 09:56:56 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses