{"id":"CVE-2022-24891","published":"2022-04-27T00:00:00Z","modified":"2025-11-03T19:26:55Z","title":"Cross-site Scripting in org.owasp.esapi:esapi -- antisamy-esapi.xml configuration file","vendor":"ESAPI","product":"esapi-java-legacy","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01518,"percentile":0.74832,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/esapi4java-core-2.3.0.0-release-notes.txt","tags":[]},{"url":"https://github.com/ESAPI/esapi-java-legacy/security/advisories/GHSA-q77q-vx4q-xx6q","tags":[]},{"url":"https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-security-bulletin8.pdf","tags":[]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20230127-0014/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/07/msg00010.html","tags":[]}],"priority":{"score":18.7,"factors":[{"name":"EPSS percentile","points":14.97},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"esapi","affectedVersions":[{"vendor":"ESAPI","product":"esapi-java-legacy","versions":["<= 2.2.3.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-22T15:48:36.272819Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.owasp.esapi:esapi","vulnerableRanges":["<2.3.0.0"],"patched":["2.3.0.0"],"from":["GHSA-q77q-vx4q-xx6q"],"provenance":"source"}],"summary":{"text":"The flaw is a cross-site scripting vulnerability in the antisamy-esapi.xml configuration file of the OWASP ESAPI library (esapi-java-legacy), caused by an incorrect regular expression for \"onsiteURL\" that allows \"javascript:\" URLs to escape proper sanitization. An attacker with network access can exploit it by getting a user to interact with crafted content (user interaction required, no authentication needed), and it affects versions prior to 2.3.0.0.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:33:59Z"},"euvd":{"id":"EUVD-2022-1809","exploited":false,"provenance":"source"}}