PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2022-24891: 
Java vulnerability analysis and mitigation

Overview

ESAPI (The OWASP Enterprise Security API), a free and open source web application security control library, was found to contain a cross-site scripting vulnerability (CVE-2022-24891) prior to version 2.3.0.0. The vulnerability was caused by an incorrect regular expression for "onsiteURL" in the antisamy-esapi.xml configuration file that failed to properly sanitize "javascript:" URLs. This vulnerability has existed since at least ESAPI 1.4 and was patched in ESAPI 2.3.0.0 released on April 17, 2022 (GitHub Advisory).

Technical details

The vulnerability stems from a malformed regular expression in the antisamy-esapi.xml configuration file that incorrectly validates the "onsiteURL" attribute. This allows URLs with the "javascript:" scheme to bypass sanitization controls. The vulnerability has a CVSS v3.1 base score of 5.4 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N, indicating it is network exploitable with low attack complexity and requires user interaction (NetApp Advisory).

Impact

Successful exploitation of this vulnerability could lead to cross-site scripting attacks, potentially resulting in unauthorized disclosure of sensitive information and modification of data when a user interacts with maliciously crafted input (NetApp Advisory).

Exploitability

The vulnerability is exploitable over a network and requires user interaction. An attacker could potentially exploit this vulnerability by crafting malicious URLs using the "javascript:" scheme that would bypass the ESAPI sanitization controls (GitHub Advisory).

Mitigation and workarounds

The vulnerability is patched in ESAPI version 2.3.0.0 and later. For users unable to upgrade immediately, a workaround is available by manually editing the antisamy-esapi.xml configuration file to correct the "onsiteURL" regular expression. Users should either update to the new configuration file provided in esapi-2.3.0.0-configuration.jar or modify their existing configuration according to the remediation instructions (GitHub Advisory).

Additional resources


Source: This report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-111765HIGH7.5
  • Java logoJava
  • org.a2aproject.sdk:a2a-java-sdk-http-client-android
NoYesOct 20, 2026
CVE-2026-102834HIGH7.5
  • Java logoJava
  • org.bytedeco:javacv
NoYesOct 16, 2026
CVE-2026-111763MEDIUM5.7
  • Java logoJava
  • org.a2aproject.sdk:a2a-java-sdk-parent
NoYesOct 20, 2026
CVE-2026-111762MEDIUM5.7
  • Java logoJava
  • org.a2aproject.sdk:a2a-java-sdk-transport-rest
NoYesOct 20, 2026
CVE-2026-113730MEDIUM5.6
  • Java logoJava
  • ognl:ognl
NoYesOct 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management