Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain editor/admin credentials
-
DeliveryCreate page with XSS payload in title
-
ExploitVictim performs search matching the page title
-
ExecutionBrowser renders unescaped title as HTML
-
PersistJavaScript executes in victim browser context
-
ImpactExfiltrate session token or perform authenticated actions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must hold editor or administrator permissions on the target LeafWiki instance in order to create or modify a page title containing the malicious payload - this is the primary gating condition. A victim must then perform a search query that causes the malicious page title to appear in the rendered search results; the XSS does not trigger on page view alone. In deployments running with |
| Impact | The CVSS 4.0 score of 4.8 (Medium) is well-calibrated for this vulnerability. The PR:L metric correctly reflects that payload planting requires editor or admin credentials - this is not a spray-and-pray flaw. UI:A requires the victim to actively perform a search, reducing opportunistic exploitation. The impact metrics (SC:L/SI:L) reflect that the vulnerable system (the wiki server) is unaffected; harm occurs in the victim's browser context (session hijack, credential theft, UI redress). No KEV listing and no reported POC mean active exploitation is unconfirmed. EPSS data was not provided. The |
| Exploit ScenarioDerived | An attacker who has obtained editor credentials (e.g., via credential stuffing, a compromised account, or insider access) creates or edits a LeafWiki page with a title such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 21, 2026
Stored cross-site scripting in LeafWiki's search API allows an authenticated editor or administrator to plant a JavaScript payload in a page title, which executes in any victim's browser when they view search results containing that title. No public exploit identified at time of analysis. The attack surface widens significantly when the --public-access flag is enabled, making unauthenticated visitors viable targets; in default authenticated-only deployments, the blast radius is limited to logged-in users. A vendor-released patch is available in version 0.10.2.
RemediationAI
Upgrade LeafWiki to version 0.10.2, which resolves the issue by HTML-encoding author-controlled page titles in search result output. The vendor security advisory is available at https://github.com/perber/leafwiki/security/advisories/GHSA-j344-qxqm-wg64. If an immediate upgrade is not feasible, the most impactful compensating control is to restrict editor and administrator role assignments to fully trusted internal users only, eliminating the attacker's ability to plant payloads. Additionally, disabling the --public-access flag on public-facing instances removes unauthenticated users from the victim pool, reducing exposure to authenticated users only. Neither workaround eliminates the underlying vulnerability - they only constrain the attack surface - and patching to 0.10.2 remains the definitive fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
LeafWiki (CPE: cpe:2.3:a:perber:leafwiki:*:*:*:*:*:*:*:*) is a self-hosted, Go-based wiki application. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation), a class of flaw where user-supplied content is interpolated into a rendered HTML context without adequate escaping. Specifically, the search API endpoint returned page title strings that the frontend inserted directly into the DOM as raw HTML rather than as text nodes. Because page titles are author-controlled fields (writable by any editor or admin), they constitute an untrusted input boundary. The fix in 0.10.2 HTML-encodes title output in search result rendering while preserving search-term highlighting, which requires careful handling to avoid double-encoding or stripping the highlight markers.
Know when Leafwiki 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
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
Editor privileges required to plant payload (PR:L); victim must actively search (UI:R); payload executes in victim's browser scope, causing scope change (S:C) with limited confidentiality and integrity impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
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.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Path traversal in LeafWiki's asset rename endpoint allows authenticated editors to relocate any file readable by the ser
Privilege escalation in LeafWiki versions 0.1.0 through 0.10.0 allows any authenticated user to elevate their own accoun
Uncontrolled ZIP extraction in LeafWiki 0.10.0 through 0.12.0 allows any authenticated Editor or Admin to exhaust server
EUVD-2026-64178
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB