XSS in Esapi Esapi-Java-Legacy
CVE-2022-24891
ESAPI (The OWASP Enterprise Security API) is a free, open source, web application security control library. Prior to version 2.3.0.0, there is a potential for a cross-site scripting vulnerability in ESAPI caused by a incorrect regular expression for "onsiteURL" in the **antisamy-esapi.xml** configuration file that can cause "javascript:" URLs to fail to be correctly sanitized. This issue is patched in ESAPI 2.3.0.0. As a workaround, manually edit the **antisamy-esapi.xml** configuration files to change the "onsiteURL" regular expression. More information about remediation of the vulnerability, including the workaround, is available in the maintainers' release notes and security bulletin.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.017, 77.8th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Esapi Esapi-Java-Legacy — versions <= 2.2.3.1
- NetApp Active Iq Unified Manager
- NetApp Oncommand Workflow Automation
- Oracle Weblogic Server — versions 12.2.1.3.0, 12.2.1.4.0, 14.1.1.0.0
- Owasp Enterprise Security API
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- shoucheng3/ESAPI__esapi-java-legacy_CVE-2022-24891_2-2-3-1 (last pushed 2025-08-17)
Also mentioned in 3 other repositories (ARPSyndicate/cvemon, razermuse/enum_cvss, w4zu/Debian_security). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/esapi4java-core-2… (Release Notes)
- github.com/ESAPI/esapi-java-legacy/security/advisories/GHSA-q77q-vx4q-xx6q (Third Party Advisory)
- github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-security-bu… (Exploit, Third Party Advisory, Mitigation)
- www.oracle.com/security-alerts/cpujul2022.html (Patch, Third Party Advisory)
- security.netapp.com/advisory/ntap-20230127-0014/ (Third Party Advisory)
- lists.debian.org/debian-lts-announce/2025/07/msg00010.html
This CVE has public exploit evidence. See the latest CVEs with public exploits.