CVE-2022-24891
JSON

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 packageVersionsReported by
ESAPI esapi-java-legacy<= 2.2.3.1CVE List
org.owasp.esapi:esapi (Maven)before 2.3.0.0GitHub Advisory Database
owasp enterprise_security_apibefore 2.3.0.0NVD
oracle weblogic_server12.2.1.3.0, 12.2.1.4.0, 14.1.1.0.0NVD
netapp active_iq_unified_managerNot specifiedNVD
netapp oncommand_workflow_automationNot specifiedNVD

All scores

GitHub_M5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
GitHub6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD4.3medium CVSS:2.0AV:N/AC:M/Au:N/C:N/I:P/A:N

Classification

CWE-79

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

Security Bulletin 8

For more information

If you have any questions or comments about this advisory:

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

Sources

SourceRecordLicence
CVE ListCVE-2022-24891 changed 2025-11-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-q77q-vx4q-xx6q changed 2025-11-03CC-BY-4.0
NVDCVE-2022-24891 changed 2026-06-17Public domain