Skip to main content

EUVDEUVD-2026-22819

| CVE-2026-40105 MEDIUM
Basic XSS (CWE-80)
2026-04-14 https://github.com/xwiki/xwiki-platform GHSA-w4fj-87j5-f25c
6.5
CVSS 4.0 · Vendor: https://github.com/xwiki/xwiki-platform
View

Attack ChainAIDerived

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

  1. Access
    Send crafted URL with XSS payload
  2. Delivery
    Browser loads compare view page
  3. Exploit
    Unescaped URL parameter reflected in HTML
  4. Execution
    JavaScript executes in victim's session
  5. Impact
    Admin privileges escalate impact to full instance

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization HTML tag escaping
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

Without a CVSS vector or EPSS score provided, risk assessment relies on structural analysis. This is a reflected XSS vulnerability (CWE-80) in a web application, which typically has CVSS base scores of 6.1-7.1 depending on attack complexity and user interaction. The attack vector is network-based and requires no authentication-an attacker can send a crafted URL to a victim via email, chat, or forum post. User interaction is required (victim must click the link), which moderates real-world exploitation likelihood. However, the impact escalation to full instance compromise when admin users are targeted significantly elevates business risk despite moderate technical exploitability. No KEV status or active exploitation signals are present, suggesting this is not yet under active attack by threat actors. The availability of a vendor patch and disclosed workaround further reduces urgency but does not eliminate risk for unpatched deployments.

Exploit ScenarioDerived

An attacker crafts a URL to an XWiki instance's compare view endpoint with malicious JavaScript injected into a URL parameter (e.g., a page name or revision identifier). The attacker sends this link to an XWiki administrator via email or embeds it in a forum post. When the administrator clicks the link to compare revisions, the injected JavaScript executes in their browser with their administrative session cookies and credentials, allowing the attacker to steal session tokens, create new admin accounts, modify page content, or exfiltrate sensitive wiki data. No public proof-of-concept code has been identified, but the vulnerability is straightforward to exploit given the unescaped parameter reflection.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 15, 2026

Reflected cross-site scripting (XSS) in XWiki's compare view allows unauthenticated attackers to execute arbitrary JavaScript in a user's browser by injecting malicious code through unescaped URL parameters in the page revision comparison feature. When the victim is an administrator, successful exploitation compromises the confidentiality, integrity, and availability of the entire XWiki instance. Vendor-released patch is available; no public exploit code or active exploitation has been confirmed at time of analysis.

RemediationAI

Apply the vendor patch by updating org.xwiki.platform:xwiki-platform-web-templates to a version released after the fix commit (3c8a2ec985641367015c2db937574fcd360c788c). Consult the XWiki GitHub Security Advisory at https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-w4fj-87j5-f25c for the specific patched version number and release date. As an immediate workaround for unpatched deployments, manually apply the patch to the templates/changesdoc.vm file in the deployed WAR archive by replacing the vulnerable template with the corrected version from the GitHub commit. After applying any patch or workaround, test the compare view functionality with both normal and admin accounts to confirm XSS injection is blocked and revision comparison continues to work correctly.

Affected VersionsENISA

xwiki-platform 17.5.0-rc-1, < 17.10.1
xwiki-platform 10.4-rc-1, < 16.10.16
xwiki-platform 17.0.0-rc-1, < 17.4.8

Affected Packages

maven org.xwiki.platform:xwiki-platform-web-templates fix: 16.10.16, 17.4.8, 17.10.1
euvd xwiki_platform_10_4_rc_1 fix: 16.10.16
euvd xwiki_platform_17_0_0_rc_1 fix: 17.4.8
euvd xwiki_platform_17_5_0_rc_1 fix: 17.10.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 4 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability exists in XWiki Platform's changesdoc.vm template file, which handles the display of differences between page revisions. The root cause is improper output encoding of URL parameters in the compare view (CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page). The affected component is the xwiki-platform-web-templates Maven package, which provides the Velocity template files used for rendering revision comparison interfaces. When user-controlled URL parameters are reflected directly into the HTML response without proper escaping, an attacker can break out of the HTML context and inject JavaScript payloads that execute with the privileges of the authenticated user viewing the comparison.

Know when the next one hits your stack

  • 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

Vendor (https://github.com/xwiki/xwiki-platform) PRIMARY 6.5 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H

Primary rating from Vendor (https://github.com/xwiki/xwiki-platform) · only source for this CVE.

CVSS VectorVendor: https://github.com/xwiki/xwiki-platform

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

Lifecycle Timeline

3
PoC Detected
Apr 23, 2026 - 13:52 vuln.today
Public exploit code
Patch released
Apr 14, 2026 - 22:46 nvd
Patch available
CVE Published
Apr 14, 2026 - 22:33 nvd
MEDIUM 6.5

DescriptionCVE.org

Impact

A reflected cross-site scripting vulnerability (XSS) in the compare view between revisions of a page allows executing JavaScript code in the user's browser. If the current user is an admin, this can not only affect the current user but also the confidentiality, integrity and availability of the whole XWiki instance.

Patches

The problem has been patched by properly escaping the URL parameters.

Workarounds

The patch can be applied manually to templates/changesdoc.vm in the deployed WAR.

Attribution

XWiki thanks Mike Cole @mikecole-mg for discovering and reporting this vulnerability.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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 MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

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