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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| ESAPI | esapi-java-legacy | <= 2.2.3.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 13 | libowasp-esapi-java | 2.4.0.0-1 | — |
| Debian 12 | libowasp-esapi-java | 2.4.0.0-1 | — |
| Debian 11 | libowasp-esapi-java | 2.4.0.0-0+deb11u1 | DLA-4246-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | libowasp-esapi-java | 2.2.3.1-1ubuntu0.1~esm1 | — |
| Ubuntu Pro 20.04 LTS | libowasp-esapi-java | 2.1.0-3ubuntu0.20.04.1~esm1 | — |
| Ubuntu Pro 18.04 LTS | libowasp-esapi-java | 2.1.0-3ubuntu0.18.04.1~esm1 | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | libowasp-esapi-java | 2.1.0-2ubuntu0.1~esm1 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
shoucheng3/ESAPI__esapi-java-legacy_CVE-2022-24891_2-2-3-1 ★ 0 · Aug 17, 2025
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.owasp.esapi:esapi | < 2.3.0.0 | 2.3.0.0 | GHSA-q77q-vx4q-xx6q |
Advisories 2
- DLA-4246-1 libowasp-esapi-java - security update Debian Security (DSA / DLA) · Mar 9, 2026
- WID-SEC-2023-0217 NetApp ActiveIQ Unified Manager: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 29, 2023
References
- https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/esapi4java-core-2.3.0.0-release-notes.txt
- https://github.com/ESAPI/esapi-java-legacy/security/advisories/GHSA-q77q-vx4q-xx6q
- https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-security-bulletin8.pdf
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://security.netapp.com/advisory/ntap-20230127-0014/