CVE-2022-24891
published medium CVSS 3.1 · 5.4Cross-site Scripting in org.owasp.esapi:esapi -- antisamy-esapi.xml configuration file
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ESAPI | — | esapi-java-legacy<= 2.2.3.1 | Affected | Not stated | GitHub_M |
| Debian | bullseye | libowasp-esapi-java | Advisory build | 2.4.0.0-0+deb11u1 | DLA-4246-1 |
| Ubuntu | bionic | libowasp-esapi-java | Advisory build | 2.1.0-3ubuntu0.18.04.1~esm1 | USN-8181-1 |
| Ubuntu | focal | libowasp-esapi-java | Advisory build | 2.1.0-3ubuntu0.20.04.1~esm1 | USN-8181-1 |
| Ubuntu | jammy | libowasp-esapi-java | Advisory build | 2.2.3.1-1ubuntu0.1~esm1 | USN-8181-1 |
| Ubuntu | xenial | libowasp-esapi-java | Advisory build | 2.1.0-2ubuntu0.1~esm1 | USN-8181-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.4 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ESAPI | esapi-java-legacy | <= 2.2.3.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
6- https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-security-bulletin8.pdf
- 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://lists.debian.org/debian-lts-announce/2025/07/msg00010.html
- https://security.netapp.com/advisory/ntap-20230127-0014/
- https://www.oracle.com/security-alerts/cpujul2022.html
Provider assertions
3GitHub_M · cna
Cross-site Scripting in org.owasp.esapi:esapi -- antisamy-esapi.xml configuration file
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 20a33950772c70876a4f344ed8985ee1553e48eca0586c0459cad9197d027db6
- Ingested
- 23 Sep 2026, 07:58:57 UTC
- Source record
- Official CVE record