CVE-2022-24891
Cross-site Scripting in org.owasp.esapi:esapi -- antisamy-esapi.xml configuration file
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.
- Affected
- ESAPI · esapi-java-legacy
- CVSS v3.1 NVD
- 6.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - CVSS v3.1 GITHUB
- 5.4 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N - CVSS v2.0 NVD
- 4.3 MEDIUM
AV:N/AC:M/Au:N/C:N/I:P/A:N - EPSS
- 1.71% chance of exploitation in the next 30 days, 77th percentile
- Published
- 2022-04-27
- Updated
- 2025-11-03
Proof-of-concept exploits (1)
- shoucheng3/ESAPI__esapi-java-legacy_CVE-2022-24891_2-2-3-10★ · 2025-08-17
Security advisories
- ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-security-bulletin8.pdf
- ESAPI/esapi-java-legacy/security/advisories/GHSA-q77q-vx4q-xx6q
- https://security.netapp.com/advisory/ntap-20230127-0014
- https://www.oracle.com/security-alerts/cpujul2022.html
- advisories/GHSA-q77q-vx4q-xx6q