CVE-2022-24891
MEDIUM6.1EPSS 1.0%Cross-site Scripting in org.owasp.esapi:esapi
Published: 4/27/2022Modified: 4/28/2026
Description
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 packages (2)
- Debian/libowasp-esapi-javafrom 0, < 2.4.0.0-0+deb11u1
- Maven/org.owasp.esapi:esapifrom 0, < 2.3.0.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
References (9)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2022-24891
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2022-24891
- PATCHhttps://github.com/ESAPI/esapi-java-legacy
- WEBhttps://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/esapi4java-core-2.3.0.0-release-notes.txt
- WEBhttps://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-security-bulletin8.pdf
- WEBhttps://github.com/ESAPI/esapi-java-legacy/security/advisories/GHSA-q77q-vx4q-xx6q
- WEBhttps://lists.debian.org/debian-lts-announce/2025/07/msg00010.html
- WEBhttps://security.netapp.com/advisory/ntap-20230127-0014
- WEBhttps://www.oracle.com/security-alerts/cpujul2022.html