Vulnerability record · CVE-2022-27166 · published 4 August 2022
CVE-2022-27166: Apache JSPWiki XHRHtml2Markup.jsp reflected XSS
Apache · Jspwiki
Apache JSPWiki up to and including 2.11.2 does not properly sanitize a crafted request to XHRHtml2Markup.jsp, allowing reflected cross-site scripting. An attacker can run JavaScript in a victim's browser in the context of the JSPWiki site, which matters because it exposes session data and other sensitive information about the victim.
Description
A carefully crafted request on XHRHtml2Markup.jsp could trigger an XSS vulnerability on Apache JSPWiki up to and including 2.11.2, which could allow the attacker to execute javascript in the victim's browser and get some sensitive information about the victim.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Automated analysis
high priorityMedium CVSS (6.1) but very high EPSS (99.7th percentile) and a remotely reachable, unauthenticated reflected XSS in a widely deployed wiki make timely patching important.
What it is
Apache JSPWiki up to and including 2.11.2 does not properly sanitize a crafted request to XHRHtml2Markup.jsp, allowing reflected cross-site scripting. An attacker can run JavaScript in a victim's browser in the context of the JSPWiki site, which matters because it exposes session data and other sensitive information about the victim.
Impact
An attacker gains script execution in the victim's browser session on the JSPWiki origin, enabling theft of session cookies or other sensitive information and actions performed as the victim.
Attack surface
Reached over the network via a crafted request to XHRHtml2Markup.jsp; no authentication is required (PR:N), but the victim must be induced to trigger the request (UI:R), and scope is changed (S:C).
Exploitation
Not listed in CISA KEV and no public exploit references are provided, but EPSS is very high (0.85389, 99.7th percentile), indicating elevated likelihood of attempted exploitation.
What to do
- Upgrade Apache JSPWiki to a version later than 2.11.2 that fixes this XSS; patch first.
- If immediate upgrade is not possible, restrict or disable access to XHRHtml2Markup.jsp and apply input validation or output encoding for its parameters.
- Deploy a WAF rule to block script payloads targeting XHRHtml2Markup.jsp.
- Set session cookies HttpOnly and SameSite to limit theft via injected script.
- Review JSPWiki exposure to untrusted networks and limit access to trusted users.
Detection
- Inspect web server and JSPWiki logs for requests to XHRHtml2Markup.jsp containing script tags, event handlers or encoded JavaScript.
- Alert on XHRHtml2Markup.jsp responses reflecting user-supplied input without encoding.
- Monitor for anomalous outbound requests or cookie exfiltration following JSPWiki page views.
- Correlate WAF XSS blocks on JSPWiki endpoints with subsequent suspicious session activity.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://jspwiki-wiki.apache.org/Wiki.jsp?page=CVE-2022-28732 | Vendor Advisory |
| https://jspwiki-wiki.apache.org/Wiki.jsp?page=CVE-2022-28732 | Vendor Advisory |
Track CVE-2022-27166 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2022-27166), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.