Description
YesWiki is a wiki system written in PHP. Prior to version 4.6.6, 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. This issue has been patched in version 4.6.6.
Published: 2026-09-04
Score: 6.1 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

YesWiki is vulnerable to a reflected cross‑site scripting flaw that allows an attacker to inject arbitrary JavaScript into the page by manipulating the unescaped `id` GET parameter of the Bazar widget. The improper use of strip_tags() permits an attacker to break out of an HTML attribute and insert an event handler such as `onmouseover`. An attacker can therefore cause any code to run in the victim’s browser, which can lead to data theft, session hijacking, or defacement. The vulnerability is not limited to authenticated users and can be exploited by simply accessing a URL that contains the id parameter.

Affected Systems

The flaw exists in YesWiki versions older than 4.6.6 when the Bazar extension is enabled. Any page that calls the widget endpoint with an `id` query string is affected. The vulnerability applies to both valid and nonexistent page routes. All installations that use the default YesWiki distribution with the Bazar component before the 4.6.6 release should be considered vulnerable.

Risk and Exploitability

The CVSS score of 6.1 indicates a medium severity. There is no EPSS score available, and the flaw is not listed in CISA’s KEV catalog. The vulnerability can be triggered without authentication, requiring only that the Bazar extension be active and that an attacker delivers a crafted URL containing the id parameter. Any public user who follows such a link would have the injected JavaScript executed in their browser. Because the flaw exposes a serialization of the id parameter directly into the DOM, the risk remains high for any untrusted users visiting the site.

Generated by OpenCVE AI on September 5, 2026 at 01:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade YesWiki to version 4.6.6 or later, which removes the unescaped ID handling in the Bazar widget.
  • If upgrading immediately is not feasible, disable the Bazar extension or block access to the widget route until a patch is applied.
  • As a temporary measure, manually sanitize or escape the `id` parameter before it is inserted into HTML attributes, for example by using a PHP function that encodes special characters such as htmlspecialchars and stripping quotation marks.

Generated by OpenCVE AI on September 5, 2026 at 01:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-r5xw-gcgw-hwp5 YesWiki Vulnerable to Reflected XSS via Unescaped `id` Parameter in Bazar Widget HTML Attributes
History

Sat, 05 Sep 2026 00:00:00 +0000

Type Values Removed Values Added
Description YesWiki is a wiki system written in PHP. Prior to version 4.6.6, 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. This issue has been patched in version 4.6.6.
Title Reflected XSS via Unescaped `id` Parameter in Bazar Widget HTML Attributes in YesWiki
Weaknesses CWE-80
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-04T23:51:19.336Z

Reserved: 2026-06-08T17:13:43.064Z

Link: CVE-2026-52774

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-05T00:17:20.380

Modified: 2026-09-05T00:17:20.380

Link: CVE-2026-52774

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-05T01:30:17Z

Weaknesses
  • CWE-80

    Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)