WikiDocs
CVE-2025-7887
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker crafts malicious URL with XSS payload
-
DeliveryDelivers URL to victim via email/chat
-
ExploitVictim clicks link
-
InstallBrowser requests WikiDocs template.inc.php with path parameter
-
C2Server reflects unescaped path into HTML response
-
ExecuteJavaScript executes in victim's browser context
-
ImpactAttacker exfiltrates session token or performs account 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 path parameter in template.inc.php must accept and reflect user input without HTML encoding. Exploitation requires UI:P (user interaction) - a victim must visit an attacker-crafted URL or click a malicious link. The attack is not instantaneous or invisible; the user must load the compromised page. No authentication is required (PR:N), so any internet-facing WikiDocs instance is theoretically accessible. Default configurations with no output encoding in template.inc.php are vulnerable. The vulnerability is NOT limited to specific deployment modes or non-standard configurations - it is inherent to the affected code path in versions up to 1.0.78. |
| Impact | This is a low-risk vulnerability despite public exploit availability. The CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:P) indicates network-accessible code requiring user interaction, which significantly limits exploitation scope - an attacker must trick a user into clicking a malicious link or accessing a crafted URL. The EPSS score of 0.10% (26th percentile) suggests minimal exploitation probability in practice, consistent with typical XSS vulnerabilities targeting low-value targets. The integrity impact is limited (VI:L) with no confidentiality or availability impact, meaning successful exploitation enables session hijacking or credential theft but not system compromise. The presence of public exploit code elevates slightly the theoretical risk of automated scanning, but the user interaction requirement (UI:P) prevents worm-like propagation. Real-world priority depends on whether WikiDocs instances are externally accessible and contain sensitive data; many deployments are internal documentation wikis with lower risk profiles. |
| Exploit ScenarioDerived | An attacker crafts a malicious URL containing JavaScript code in the path parameter (e.g., /template.inc.php?path=<script>alert('xss')</script>) and sends it to a WikiDocs user via email or instant message. When the user clicks the link and the page loads, the unescaped path parameter is reflected directly into the HTML response, causing the JavaScript to execute in the user's browser with the privileges of the authenticated session, potentially allowing session token theft or account takeover. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
Cross-site scripting (XSS) in WikiDocs up to version 1.0.78 allows remote attackers to inject malicious scripts via the path parameter in template.inc.php, requiring user interaction to trigger. The vulnerability has publicly available exploit code and carries a low CVSS score (2.1) due to its reliance on user interaction and limited impact scope, though the EPSS score of 0.10% suggests minimal real-world exploitation likelihood despite public disclosure.
RemediationAI
Upgrade WikiDocs to a version newer than 1.0.78 if a patched release is available. If no patch has been released, implement HTML entity encoding (using PHP functions like htmlspecialchars() or htmlentities()) on the path parameter before output in template.inc.php, specifically encoding it with the ENT_QUOTES flag and UTF-8 charset to prevent both single and double-quote escaping. Apply Content Security Policy (CSP) headers with 'script-src' restrictions to mitigate reflected XSS impact. Monitor the WikiDocs GitHub repository (https://github.com/Zavy86/WikiDocs/issues/256) for patch announcements. If patch status is unclear, restrict network access to WikiDocs instances via firewall rules or require authentication via reverse proxy to reduce exposure.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
WikiDocs is a lightweight PHP-based wiki system. The vulnerability exists in the template.inc.php file, where user-supplied input from the path parameter is not properly sanitized before being output to the page, violating CWE-79 (Improper Neutralization of Input During Web Page Generation). The attack exploits inadequate input validation in a PHP server-side template rendering function, allowing attacker-controlled path values to be reflected in HTTP responses without HTML encoding or contextual escaping, leading to DOM-based or reflected XSS execution in user browsers.
Know when Wikidocs 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:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
A vulnerability has been found in Zavy86 WikiDocs up to 1.0.78 and classified as problematic. This vulnerability affects unknown code of the file template.inc.php. The manipulation of the argument path leads to cross site scripting. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used.
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.
Affected Products (CPE)CVE.org
WikiDocs version 0.1.18 has an authenticated remote code execution vulnerability. Rated high severity (CVSS 8.8), this v
WikiDocs version 0.1.18 has multiple reflected XSS vulnerabilities on different pages. Rated medium severity (CVSS 6.1),
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB