5.4medium
Cross-site Scripting in org.owasp.esapi:esapi -- antisamy-esapi.xml configuration file
- Severity
- 5.4medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.71% (higher than 78% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-q77q-vx4q-xx6q
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
| Product or package | Versions | Reported by |
|---|---|---|
| ESAPI esapi-java-legacy | <= 2.2.3.1 | CVE List |
| org.owasp.esapi:esapi (Maven) | before 2.3.0.0 | GitHub Advisory Database |
| owasp enterprise_security_api | before 2.3.0.0 | NVD |
| oracle weblogic_server | 12.2.1.3.0, 12.2.1.4.0, 14.1.1.0.0 | NVD |
| netapp active_iq_unified_manager | Not specified | NVD |
| netapp oncommand_workflow_automation | Not specified | NVD |
All scores
| GitHub_M | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| GitHub | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
There is a potential for an XSS vulnerability in ESAPI caused by a incorrect regular expression for "onsiteURL" in the antisamy-esapi.xml configuration file that can cause URLs with the "javascript:" scheme to NOT be sanitized. See the reference below for full details.
Patches
Patched in ESAPI 2.3.0.0 and later. See important remediation details in the reference given below.
Workarounds
Manually edit your antisamy-esapi.xml configuration files to change the "onsiteURL" regular expression as per remediation instructions in the reference below.
References
For more information
If you have any questions or comments about this advisory:
- Email one of the project co-leaders. See email addresses listed on the OWASP ESAPI wiki page, under "Leaders".
- Send email to one of the two ESAPI related Google Groups listed under Where to Find More Information on ESAPI on our README.md page.
NVD (es)
ESAPI (The OWASP Enterprise Security API) es una biblioteca de control de seguridad de aplicaciones web gratuita y de código abierto. En versiones anteriores a 2.3.0.0, se presentaba la posibilidad de una vulnerabilidad de tipo cross-site scripting en ESAPI causada por una expresión regular incorrecta para "onsiteURL" en el archivo de configuración **antisamy-esapi.xml** que puede causar que las URLs "javascript:" no sean saneadas correctamente. Este problema ha sido corregido en ESAPI versión 2.3.0.0. Como medida de mitigación, edite manualmente los archivos de configuración **antisamy-esapi.xml** para cambiar la expresión regular "onsiteURL". En las notas de la versión y en el boletín de seguridad de los mantenedores se presenta más información sobre la corrección de la vulnerabilidad, incluida la mitigación
References
| https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/esapi4java-core-2.3.0.0-release-notes.txt | release-notes, web | |
| https://github.com/ESAPI/esapi-java-legacy/security/advisories/GHSA-q77q-vx4q-xx6q | third-party-advisory, web | |
| https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-security-bulletin8.pdf | exploit, mitigation, third-party-advisory, web | |
| https://www.oracle.com/security-alerts/cpujul2022.html | patch, third-party-advisory, web | |
| https://security.netapp.com/advisory/ntap-20230127-0014/ | third-party-advisory | |
| https://lists.debian.org/debian-lts-announce/2025/07/msg00010.html | web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-24891 | advisory | |
| https://github.com/ESAPI/esapi-java-legacy | package | |
| https://security.netapp.com/advisory/ntap-20230127-0014 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-24891 changed 2025-11-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-q77q-vx4q-xx6q changed 2025-11-03 | CC-BY-4.0 |
| NVD | CVE-2022-24891 changed 2026-06-17 | Public domain |