CVE-2022-24948: Cross-site Scripting in Apache JSPWiki
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.91083%
CWE
Published
2/26/2022
Updated
2/3/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.apache.jspwiki:jspwiki-main | maven | < 2.11.2 | 2.11.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The patch modifies a JSP template that renders user-controlled data (wikiUserName) in a meta tag. The change from single to double quotes suggests the username value wasn't properly escaped for HTML attributes. The vulnerability manifests in the UserNameTag
handler that processes and outputs the username value. As JSP custom tags typically implement doStartTag()
/doEndTag()
methods for rendering, the UserNameTag
's doStartTag()
method would be responsible for outputting the unescaped username value to the response stream.