Skip to main content

YesWiki CVE-2026-52774

MEDIUM
Basic XSS (CWE-80)
2026-07-09 https://github.com/YesWiki/yeswiki GHSA-r5xw-gcgw-hwp5
6.1
CVSS 3.1 · Vendor: https://github.com/YesWiki/yeswiki
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker crafts malicious URL with attribute-breaking id payload
  2. Delivery
    Sends URL to victim via phishing or embedded link
  3. Exploit
    Victim opens URL in browser (unauthenticated)
  4. Install
    YesWiki server reflects payload into data-formid and data-iframeUrl attributes
  5. C2
    Victim triggers injected event handler (e.g., mouseover)
  6. Execute
    Arbitrary JavaScript executes in YesWiki origin
  7. Impact
    Session cookie or CSRF token exfiltrated to attacker

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization HTML tag escaping
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The Bazar extension must be enabled on the target YesWiki instance - this is a bundled module but requires explicit activation; instances without Bazar active are not reachable via this route. Beyond that single deployment prerequisite, no authentication, no account registration, no valid page tag, no valid Bazar form identifier, and no edit or read rights are required - the handler performs no access-control check whatsoever before rendering the vulnerable template. Exploitation is limited on the victim side by the requirement for user interaction: the victim must open the attacker-supplied URL and trigger the injected event handler (e.g., mouse movement for onmouseover); this limits fully automated mass exploitation but is easily achieved through social engineering. Impact elevation to session hijacking is conditional on the victim being authenticated to YesWiki at the time of exploitation; unauthenticated victims can still be targeted for data exfiltration (e.g., CSRF token theft, browser fingerprinting).

Impact

The NVD/vendor CVSS 3.1 score of 6.1 (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) is well-calibrated for this class: the Network attack vector and zero-privilege requirement maximally expose the attack surface, while UI:R and the Low C/I ratings correctly bound the real-world impact to social-engineering-dependent session hijacking rather than direct server compromise. No EPSS score is included in the provided intelligence, so exploitation probability cannot be quantitatively compared against base severity. The vulnerability is not listed in CISA KEV, indicating no confirmed widespread active exploitation at time of analysis. However, the complete PoC with exact URL payload and screenshot evidence is embedded in the public GitHub advisory, which materially lowers the barrier to weaponization. Real-world risk is primarily a function of YesWiki's deployment footprint (niche, largely French-language community/educational use) and whether Bazar is active - both factors that reduce aggregate exposure compared to the raw CVSS score might suggest. Defenders should treat the public PoC as a meaningful escalation signal even without KEV confirmation.

Exploit ScenarioDerived

A public proof-of-concept exists. An attacker crafts a URL such as http://target-yeswiki.example/NoSuchPage/widget?id=%22%20onmouseover=%22alert(1)%22%20x=%22 and delivers it to a victim via phishing, a malicious link, or an embedded redirect. When the victim opens the URL in their browser, the YesWiki server returns HTTP 200 with the injected onmouseover event handler rendered inside the widgetapp div; if the victim is an authenticated administrator, the attacker can leverage the XSS to exfiltrate their session token or perform privileged wiki operations on their behalf.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 09, 2026

Reflected XSS in YesWiki's Bazar widget handler allows remote unauthenticated attackers to execute arbitrary JavaScript in a victim's browser by sending a crafted URL containing a double-quote-breaking payload in the id GET parameter. The handler at tools/bazar/handlers/__WidgetHandler.php performs no authentication or access-control check before rendering the vulnerable template, and strip_tags() is misused as an output encoder - it removes tags but leaves double quotes intact, enabling attribute injection across two sinks (data-formid and data-iframeUrl). A working proof-of-concept was validated on the official doryphore 4.6.5 release; no public exploit identification as KEV-confirmed active exploitation exists at time of analysis, but a complete PoC with exact payloads is publicly available as part of the advisory.

RemediationAI

Apply the upstream fix committed at https://github.com/YesWiki/yeswiki/commit/1aa2710c7505630b858f2142a65f9441bfaba2b2; the exact released patched version number is not confirmed in available data - monitor the GitHub advisory GHSA-r5xw-gcgw-hwp5 for an official release tag. The correct code-level fix is to replace strip_tags($_GET['id']) with htmlspecialchars($_GET['id'], ENT_QUOTES, 'UTF-8') in both the template and the handler's URL-building logic. If patching is not immediately possible, disabling the Bazar extension removes the vulnerable /widget route entirely and is the most effective compensating control, with the trade-off of losing all Bazar functionality. Alternatively, a WAF rule blocking requests where id contains double quotes, angle brackets, or event-handler keywords (on*=) can reduce exposure, but WAF bypass is feasible and this does not substitute for a code fix.

Affected Packages

composer yeswiki/yeswiki fix: 4.6.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in composer

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

YesWiki is a PHP-based wiki platform (CPE: pkg:composer/yeswiki_yeswiki); the vulnerable component is its bundled Bazar extension, a form and data-management module. The root cause maps to CWE-80 (Improper Neutralization of Script-Related HTML Tags in a Web Page), a child of CWE-79, and arises from a category error: strip_tags() is a tag-stripping function, not an output encoder. The primary sink is in tools/bazar/presentation/templates/widget.tpl.html (lines 4-7) where <?php echo strip_tags($_GET['id']); ?> is placed directly inside an HTML attribute value delimited by double quotes - a double quote in the payload terminates the attribute and opens space for arbitrary attacker-controlled attributes such as event handlers. A secondary sink is in the same handler where the unsanitized id value is interpolated into a URL string then placed into the data-iframeUrl attribute, meaning a single payload produces two independent injection points. The route handler (__WidgetHandler.php lines 14-26) gates only on the presence of $_GET['id'], with no HasAccess('read') or session check.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/YesWiki/yeswiki) PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 6.1 MEDIUM

Network-reachable with no auth (PR:N, AV:N), but victim must open crafted URL (UI:R); Scope:Changed captures XSS crossing the server-to-browser boundary; no availability impact on either system.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (https://github.com/YesWiki/yeswiki).

CVSS VectorVendor: https://github.com/YesWiki/yeswiki

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

Summary

YesWiki's Bazar widget handler reflects the id GET parameter into HTML attributes using strip_tags() only. Because strip_tags() does not escape double quotes, an attacker can break out of the attribute value, inject an event handler such as onmouseover, and execute arbitrary JavaScript in the victim's browser.

This issue is reachable without authentication. During validation, the vulnerable widget route returned the injected HTML for both /HomePage/widget?id=... and /NoSuchPage/widget?id=..., which shows that no login, no page ownership, no edit rights, and not even a valid page tag were required. The only routing prerequisite observed was that the Bazar extension is enabled and the request includes an id parameter.

Details

The primary sink is in tools/bazar/presentation/templates/widget.tpl.html around lines 4-7, where $_GET['id'] is inserted into the data-formid attribute:

php
data-formid="<?php echo strip_tags($_GET['id']); ?>"

strip_tags() is not an output-encoding function. It removes HTML tags, but it does not escape characters such as double quotes, so an attacker can terminate the data-formid attribute and inject new attacker-controlled attributes.

The route is served by tools/bazar/handlers/__WidgetHandler.php around lines 14-26, which only checks whether $_GET['id'] is present:

php
if (!isset($_GET['id'])) {
    return null;
}

No HasAccess('read'), HasAccess('write'), or authentication check is performed before the vulnerable template is rendered.

There is also a second reflection path in the same handler. The handler builds:

php
$urlParams = 'id=' . strip_tags($_GET['id']) . ...

and then places the resulting value into the widget template's data-iframeUrl attribute:

php
data-iframeUrl="<?php echo $GLOBALS['wiki']->href('bazariframe', '', $urlparams, false); ?>"

During validation, a single payload injected into id was reflected into both data-formid and data-iframeUrl, which confirms that the handler exposes multiple attribute-level sinks from the same unsafely handled input.

This issue maps to CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').

PoC

  1. Set up a vulnerable YesWiki instance with the bundled Bazar extension enabled. This was validated locally on the official doryphore 4.6.5 release.
  2. Confirm the minimum access requirements:
  • No account is required.
  • No read or write permission on a specific page is required.
  • No valid existing page tag is required.
  • No valid Bazar form identifier is required.
  • The only observed requirements were that the Bazar widget handler is present and the request includes an id parameter.
  1. Request the widget handler with an attribute-breaking payload in id, for example:
text
http://127.0.0.1:8085/NoSuchPage/widget?id=%22%20onmouseover=%22alert(1)%22%20x=%22
  1. Open the URL in a browser as an unauthenticated visitor.
  2. Observe that the server returns HTTP 200 and renders the Bazar widget page even though the page tag is arbitrary.
  3. Inspect the returned HTML. The response contains attacker-controlled attributes in the widget root element:
html
<div id="widgetapp" v-cloak
  data-formid="" onmouseover="alert(1)" x=""
  ...
  data-iframeUrl="http://127.0.0.1:8085/NoSuchPage/bazariframe&id=" onmouseover="alert(1)" x=""
>
  1. Move the mouse over the widgetapp element or otherwise trigger the injected event handler.
  2. The browser executes the injected JavaScript in the YesWiki origin.

<img width="1600" height="838" alt="image" src="https://github.com/user-attachments/assets/de592586-a6ee-48f4-bbde-137ab07aaa71" />

Impact

This is a reflected XSS vulnerability in the Bazar widget handler with very low attacker prerequisites.

The practical access model is:

  • The attacker only needs to send a crafted public URL.
  • The victim does not need to authenticate.
  • The attacker does not need edit rights, ownership, or a valid page tag.
  • The route only needs to be reachable on a YesWiki instance with Bazar enabled.

An attacker may be able to:

  • Execute arbitrary JavaScript in the victim's browser.
  • Steal browser-accessible sensitive data.
  • Perform actions in the victim's session if the victim is logged in.
  • Target public visitors and authenticated users alike because the route is reachable without access-control checks.

Threat Intelligence Overview

EPSS Score
0.5%
Top 59% exploitable
Prevalence
Low
niche PHP wiki used mainly in French-speaking community and educational settings
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

51
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +30
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

pkg:composer/yeswiki_yeswiki

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy