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.
CVE-2022-24891
MEDIUMNVD 5.45.4—Elevated
EchelonGraph scoreMEDIUM confidence
This medium-severity CVE scores 5.4 under NVD CVSS v3. EPSS exploit probability: 1.6%, top 26% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
Triggered by: NVD CVSS baseline
Sources: epss, nvd
5.4
EchelonGraph verdictMonitorLow exploitation likelihood right now — keep watching.
- Lower severity and no public exploit yet
CISA-KEV: Not listedEPSS: 2%CVSS: 5.4Exploit: NoneExposed: 0
A fix is available — apply it.
- CVSS v3
- 5.4
- EG Score
- 5.4(medium)
- EG Risk
- —
- EPSS
- 73.6%
- KEV
- Not listed
Published
April 27, 2022
Last Modified
November 3, 2025
References (11)
- security-advisories@githubhttps://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-security-bulletin8.pdf
- security-advisories@githubhttps://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/esapi4java-core-2.3.0.0-release-notes.txt
- security-advisories@githubhttps://github.com/ESAPI/esapi-java-legacy/security/advisories/GHSA-q77q-vx4q-xx6q
- security-advisories@githubhttps://security.netapp.com/advisory/ntap-20230127-0014/
- security-advisories@githubhttps://www.oracle.com/security-alerts/cpujul2022.html
- af854a3a-2127-422b-91ae-364da2661108https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-security-bulletin8.pdf
- af854a3a-2127-422b-91ae-364da2661108https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/esapi4java-core-2.3.0.0-release-notes.txt
- af854a3a-2127-422b-91ae-364da2661108https://github.com/ESAPI/esapi-java-legacy/security/advisories/GHSA-q77q-vx4q-xx6q
- af854a3a-2127-422b-91ae-364da2661108https://lists.debian.org/debian-lts-announce/2025/07/msg00010.html
- af854a3a-2127-422b-91ae-364da2661108https://security.netapp.com/advisory/ntap-20230127-0014/
- af854a3a-2127-422b-91ae-364da2661108https://www.oracle.com/security-alerts/cpujul2022.html
Affected Packages
(1 across 1 ecosystem)
Maven(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| org.owasp.esapi:esapi | 2.0.1 ... 2.2.3.1 (16 versions) | 2.3.0.0 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Related CVEs(same vendor + same CWE)
Same vendor
10 shownubuntu
Frequently asked(5)
What is CVE-2022-24891?
CVE-2022-24891 is a medium vulnerability published on April 27, 2022. 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…
When was CVE-2022-24891 disclosed?
CVE-2022-24891 was first published in the National Vulnerability Database on April 27, 2022, with the most recent update on November 3, 2025. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2022-24891 actively exploited?
CVE-2022-24891 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 73.6% percentile likelihood of exploitation in the next 30 days — higher percentiles indicate greater predicted risk.
What is the CVSS score of CVE-2022-24891?
CVE-2022-24891 has a CVSS v3 base score of 5.4 (NVD).
How do I remediate CVE-2022-24891?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2022-24891, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2022-24891
Is Your Infrastructure Affected by CVE-2022-24891?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.