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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-04-27 · Modified: 2025-11-03
- Aliases: UBUNTU-CVE-2022-24891, DEBIAN-CVE-2022-24891, GHSA-q77q-vx4q-xx6q
- Record: https://cvemate.com/vulnerability/CVE-2022-24891 · JSON: https://cvemate.com/vulnerability/CVE-2022-24891/json

## Description

```text
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.
```

## Signals

- CVSS: 6.1 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- EPSS: 1.715%, percentile 78.207%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- debian libowasp-esapi-java (Debian): \< 2.4.0.0-1
- ubuntu libowasp-esapi-java (Ubuntu): \< 2.1.0-2ubuntu0.1~esm1 \| \< 2.1.0-3ubuntu0.18.04.1~esm1 \| \< 2.1.0-3ubuntu0.20.04.1~esm1 \| \< 2.2.3.1-1ubuntu0.1~esm1
- esapi esapi-java-legacy: ≤ 2.2.3.1
- org.owasp.esapi esapi (Maven): \< 2.3.0.0
- netapp active\_iq\_unified\_manager: na
- netapp oncommand\_workflow\_automation: na
- oracle weblogic\_server: 12.2.1.3.0 \| 12.2.1.4.0 \| 14.1.1.0.0
- owasp enterprise\_security\_api: \< 2.3.0.0

## 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/>
- <https://lists.debian.org/debian-lts-announce/2025/07/msg00010.html>
- <https://ubuntu.com/security/CVE-2022-24891>
- <https://www.cve.org/CVERecord?id=CVE-2022-24891>
- <https://ubuntu.com/security/notices/USN-8181-1>
- <https://security-tracker.debian.org/tracker/CVE-2022-24891>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-24891>
- <https://github.com/ESAPI/esapi-java-legacy>
- <https://security.netapp.com/advisory/ntap-20230127-0014>

---

Data as of 2026-12-05T08:24:55.437Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
