Description
LeafWiki is a self-hosted wiki. Prior to version 0.10.2, page titles returned by the search API could be rendered as raw HTML in the frontend. A user with editor or administrator permissions could create or modify a page title containing an HTML/JavaScript payload. When another user searched for a matching term, the payload could execute in the victim’s browser. The impact depends on deployment configuration. With `--public-access` enabled, unauthenticated visitors could be affected. In authenticated-only deployments, the issue could be used for cross-user XSS against logged-in users who can access search results. The issue has been fixed in version 0.10.2 by ensuring that author-controlled page titles in search results are not interpreted as raw HTML by the browser while preserving search result highlighting.
Published: 2026-08-21
Score: 4.8 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

LeafWiki renders page titles returned by its search API directly into the browser using dangerouslySetInnerHTML, without escaping them. A page title that contains arbitrary HTML or JavaScript will therefore be executed in the victim’s browser when the search results are displayed. An attacker who can create or edit a page title with a malicious payload can then trigger that code by having any user perform a search that matches the title. The impact is the execution of attacker supplied script in the context of the victim’s browser, which can be used for session hijacking, data exfiltration, or further attacks on the host system.

Affected Systems

All installations of perber:leafwiki running a version older than 0.10.2 are affected because the front‑end did not escape search-result titles. When the deployment is started with the --public-access flag, unauthenticated visitors can load the search page and trigger the payload. In deployments that restrict search to authenticated users, the flaw still allows cross‑user XSS against logged‑in users who have permission to view search results.

Risk and Exploitability

The CVSS score of 4.8 indicates a moderate overall severity, and the EPSS score is not currently available, so the likelihood of exploitation is unknown. The flaw is not listed in CISA’s KEV catalog. Successful exploitation requires the attacker to have editing privileges to set a malicious title, and the target victim must view the search result. Because the vulnerability involves stored cross‑site scripting and the upstream fix is available, the risk is considered moderate but should be mitigated promptly, especially on publicly exposed instances.

Generated by OpenCVE AI on August 21, 2026 at 22:17 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to LeafWiki 0.10.2 or later so that search-result titles are no longer rendered as raw HTML.
  • Disable the --public-access flag or otherwise restrict public access to the search interface to prevent unauthenticated users from triggering XSS.
  • Remove any existing pages that contain malicious titles or sanitize the stored titles if possible.
  • As a temporary workaround, modify the front‑end to escape or sanitize titles before passing them to highlight() or replace dangerousSetInnerHTML with a safe rendering technique.

Generated by OpenCVE AI on August 21, 2026 at 22:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 21 Aug 2026 22:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 21 Aug 2026 21:45:00 +0000

Type Values Removed Values Added
Description LeafWiki is a self-hosted wiki. Prior to version 0.10.2, page titles returned by the search API could be rendered as raw HTML in the frontend. A user with editor or administrator permissions could create or modify a page title containing an HTML/JavaScript payload. When another user searched for a matching term, the payload could execute in the victim’s browser. The impact depends on deployment configuration. With `--public-access` enabled, unauthenticated visitors could be affected. In authenticated-only deployments, the issue could be used for cross-user XSS against logged-in users who can access search results. The issue has been fixed in version 0.10.2 by ensuring that author-controlled page titles in search results are not interpreted as raw HTML by the browser while preserving search result highlighting.
Title LeafWiki vulnerable to stored XSS via search-result title (highlight() returns raw title into dangerouslySetInnerHTML)
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 4.8, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-21T21:42:08.184Z

Reserved: 2026-06-09T17:30:33.457Z

Link: CVE-2026-53529

cve-icon Vulnrichment

Updated: 2026-08-21T21:41:22.566Z

cve-icon NVD

Status : Received

Published: 2026-08-21T22:16:39.430

Modified: 2026-08-21T22:16:39.430

Link: CVE-2026-53529

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-21T22:30:17Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')