CVE-2022-24891: esapi esapi-java-legacy Cross-site Scripting
Vulnerability summary
CVE-2022-24891 is a medium (CVSS 6.1) Cross-site Scripting vulnerability in esapi esapi-java-legacy. EPSS estimates a 1.71% chance of exploitation in the next 30 days, higher than 77% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 27-04-2022PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 5 sources · 2 versions- CVE.orgCNA5.4MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · MavenEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
1.71%
Chance of exploitation in the next 30 days
Percentile
77%
Versus all other CVEs
30-day change
0.00 pp
From 1.71% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundEsapi Java Legacy
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Netapp2 products
Debian1 product
- libowasp-esapi-java< 2.4.0.0-1
Esapi1 product
- esapi-java-legacy≤ 2.2.3.1
Oracle1 product
- weblogic_server12.2.1.3.0 | 12.2.1.4.0 | 14.1.1.0.0
Org.owasp.esapi1 product
- esapi< 2.3.0.0
Owasp1 product
- enterprise_security_api< 2.3.0.0
Ubuntu1 product
- libowasp-esapi-java< 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
7 vendors · 8 products
References
13 links- github.com/ESAPI/esapi-java-legacy/security/advisories/GHSA-q77q-vx4q-xx6qREPORTWEBThird Party Advisory
- github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-security-bulletin8.pdfREPORTWEBExploitMitigationThird Party Advisory
- security.netapp.com/advisory/ntap-20230127-0014/Third Party Advisory