Skip to content
Fencer Vulns
medium 5.4

CVE-2022-24891 json

Cross-site Scripting in org.owasp.esapi:esapi -- antisamy-esapi.xml configuration file

published 2022-04-27 4 y ago modified 2026-06-17 4 mo ago also GHSA-q77q-vx4q-xx6q , EUVD-2022-1809

cvss
5.4
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.7%
EPSS 1.7% chance of exploitation in 30 days, percentile 77%
public exploits
0
none known

Summary

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.

Patch / fix

  • maven org.owasp.esapi:esapi 2.3.0.0
  • owasp enterprise_security_api 2.3.0.0
  • libowasp-esapi-java Debian 13, Debian 12 2.4.0.0-1

debian advisories DEBIAN-CVE-2022-24891

  • libowasp-esapi-java Ubuntu Pro 16.04 LTS 2.1.0-2ubuntu0.1~esm1
  • libowasp-esapi-java Ubuntu Pro 18.04 LTS 2.1.0-3ubuntu0.18.04.1~esm1
  • libowasp-esapi-java Ubuntu Pro 20.04 LTS 2.1.0-3ubuntu0.20.04.1~esm1
  • libowasp-esapi-java Ubuntu Pro 22.04 LTS 2.2.3.1-1ubuntu0.1~esm1

ubuntu advisories UBUNTU-CVE-2022-24891

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
partial
Assessed
18 mo ago

Exploit prediction

1.71% chance of exploitation in the next 30 days, higher than 77% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-security-bulletin8.pdf referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 5.4 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
NVD 3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD 2.0 4.3 AV:N/AC:M/Au:N/C:N/I:P/A:N
GitHub 3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected packages

ecosystem package affected fixed in
maven org.owasp.esapi:esapi
<2.3.0.0
2.3.0.0

Affected products

  • ESAPI esapi-java-legacy

Classification

Weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.