# CVE-2022-24891: Cross-site Scripting in org.owasp.esapi:esapi -- antisamy-esapi.xml configuration file

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.71%, higher than 78% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-04-27T00:00:00.000Z
- Modified: 2026-06-17T04:32:44.617Z
- Also known as: GHSA-q77q-vx4q-xx6q
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- ESAPI esapi-java-legacy: <= 2.2.3.1
- org.owasp.esapi:esapi (Maven): before 2.3.0.0
- owasp enterprise_security_api: before 2.3.0.0
- oracle weblogic_server: 12.2.1.3.0; 12.2.1.4.0; 14.1.1.0.0
- netapp active_iq_unified_manager: no versions given
- netapp oncommand_workflow_automation: no versions given

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-security-bulletin8.pdf> (exploit, mitigation, third-party-advisory, web)
- <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://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

- CVE List: [CVE-2022-24891](https://www.cve.org/CVERecord?id=CVE-2022-24891), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-q77q-vx4q-xx6q](https://github.com/advisories/GHSA-q77q-vx4q-xx6q), CC-BY-4.0, modified 2025-11-03
- NVD: [CVE-2022-24891](https://nvd.nist.gov/vuln/detail/CVE-2022-24891), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-24891 · Whole record: https://cve.day/CVE-2022-24891.json · Rebuilt by cve.day 2026-11-25T22:58:11.277Z
