Skip to main content

WikiDocs CVE-2025-7887

LOW
Cross-site Scripting (XSS) (CWE-79)
2025-07-20 cna@vuldb.com
2.1
CVSS 4.0 · NVD
View

Attack ChainAIDerived

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

  1. Recon
    Attacker crafts malicious URL with XSS payload
  2. Delivery
    Delivers URL to victim via email/chat
  3. Exploit
    Victim clicks link
  4. Install
    Browser requests WikiDocs template.inc.php with path parameter
  5. C2
    Server reflects unescaped path into HTML response
  6. Execute
    JavaScript executes in victim's browser context
  7. Impact
    Attacker 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

NVD PRIMARY 2.1 LOW
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.1%
Top 74% exploitable
Exploit
POC
Public exploit code exists
Data Quality
5 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 LOW
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Low

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
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.

Affected Products (CPE)CVE.org

cpe:2.3:a:wikidocs:wikidocs:*:*:*:*:*:*:*:*

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