CVE-2026-125949 in JSPWikiinfo

Summary

by MITRE • 11/25/2026

Cross Site Scripting (XSS) in the Markdown renderer of Apache JSPWiki 2.11.0 through 3.0.0 on all platforms, when the Markdown syntax is enabled, allows an attacker who can edit a page to execute javascript in the browser of a visitor of that page. The text and the url of an inline image were written into the attributes of the img element without encoding. Users are recommended to upgrade to version 3.0.1, which fixes this issue. A fix was also backported to 2.12.6

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Analysis

by VulDB Data Team • 11/27/2026

The vulnerability identified in Apache JSPWiki versions ranging from 2.11.0 through 3.0.0 represents a classic Cross-Site Scripting flaw rooted in the application's Markdown rendering engine. When the Markdown syntax feature is enabled, the system processes user-supplied content to generate HTML output for display in web browsers. The core technical failure lies in how inline image elements are constructed during this conversion process. Specifically, when an attacker provides text and a URL for an inline image within their edited page content, these values are directly injected into the attributes of the resulting img HTML element without any form of encoding or sanitization. This lack of input validation allows malicious scripts to be embedded as attribute values, such as in event handlers like onerror or onload, which trigger execution when the browser parses and renders the image tag.

From a technical perspective, this flaw is categorized under CWE-79, known as Improper Neutralization of Input During Web Page Generation Cross-site Scripting. The vulnerability arises because the application treats user-controlled data as safe HTML content rather than escaping special characters that could alter the structure or behavior of the DOM. By injecting script code into image attributes, an attacker can bypass same-origin policy restrictions if the victim is authenticated to the JSPWiki instance. This enables the execution of arbitrary JavaScript in the context of the vulnerable application, effectively granting the attacker control over the user's session and interaction with the wiki platform.

The operational impact of this vulnerability is significant for organizations relying on Apache JSPWiki for collaborative content management or internal documentation. An authenticated attacker who possesses edit permissions can craft a malicious Markdown snippet that, when viewed by other users, executes scripts in their browsers. This capability facilitates several severe attack vectors including session hijacking through the theft of cookies or authentication tokens, credential harvesting via fake login forms injected into the page context, and defacement of wiki pages to spread phishing links or malware downloads. Furthermore, because the script runs with the privileges of the victim user, it can perform actions on behalf of that user, such as modifying other pages, deleting content, or accessing sensitive information stored within the wiki environment.

To mitigate this risk, immediate action is required for all instances running affected versions. The primary remediation strategy involves upgrading Apache JSPWiki to version 3.0.1, which includes a patch addressing the input validation and output encoding issues in the Markdown renderer. For organizations that cannot immediately upgrade due to compatibility or stability concerns with newer major releases, a backported fix is available for version 2.12.6. Administrators should verify their current deployment versions against these fixed releases and apply the appropriate update as soon as possible. In addition to patching, it is advisable to review access controls to ensure that only trusted users have permission to edit pages containing Markdown syntax, thereby reducing the attack surface for potential exploitation by malicious insiders or compromised accounts.

Sources

Interested in the pricing of exploits?

See the underground prices here!