{"id":"CVE-2022-24891","aliases":["DEBIAN-CVE-2022-24891","DLA-4246-1","EUVD-2022-1809","GHSA-q77q-vx4q-xx6q","UBUNTU-CVE-2022-24891"],"status":"published","title":"Cross-site Scripting in org.owasp.esapi:esapi -- antisamy-esapi.xml configuration file","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.","severity":{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.01715,"percentile":0.77711,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-79"],"published":"2022-04-27T00:00:00Z","modified":"2026-11-03T08:02:13Z","exploits":[{"source":"pocgithub","id":"shoucheng3/ESAPI__esapi-java-legacy_CVE-2022-24891_2-2-3-1","title":"shoucheng3/ESAPI__esapi-java-legacy_CVE-2022-24891_2-2-3-1","date":"2025-08-17","url":"https://github.com/shoucheng3/ESAPI__esapi-java-legacy_CVE-2022-24891_2-2-3-1"}],"fixes":[{"ecosystem":"Maven","package":"org.owasp.esapi:esapi","fixed_in":["2.3.0.0"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"libowasp-esapi-java","fixed_in":["2.4.0.0-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"libowasp-esapi-java","fixed_in":["2.4.0.0-1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"libowasp-esapi-java","fixed_in":["2.1.0-2ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"libowasp-esapi-java","fixed_in":["2.1.0-3ubuntu0.18.04.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"libowasp-esapi-java","fixed_in":["2.1.0-3ubuntu0.20.04.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:22.04:LTS","package":"libowasp-esapi-java","fixed_in":["2.2.3.1-1ubuntu0.1~esm1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"org.owasp.esapi:esapi","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.2.3.1"},{"fixed":"2.3.0.0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"libowasp-esapi-java","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.0.0-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"libowasp-esapi-java","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.0.0-1"}]}]},{"source":"osv","ecosystem":"Debian:11","package":"libowasp-esapi-java","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.0.0-0+deb11u1"}]}],"versions":["2.1.0-3.1","2.2.3.1-1","2.2.3.1-1~bpo11+1"],"bundled":3},{"source":"osv","ecosystem":"Maven","package":"org.owasp.esapi:esapi","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.0.0"}]}],"versions":["2.0.1","2.0GA","2.0_rc10","2.0_rc11","2.0_rc9","2.1.0","2.1.0.1","2.2.0.0","2.2.0.0-RC2","2.2.0.0-RC3","2.2.1.0","2.2.1.0-RC1","2.2.1.1","2.2.2.0","2.2.3.0","2.2.3.1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"libowasp-esapi-java","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-2ubuntu0.1~esm1"}]}],"versions":["2.1.0-2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"libowasp-esapi-java","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-3ubuntu0.18.04.1~esm1"}]}],"versions":["2.1.0-3"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"libowasp-esapi-java","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-3ubuntu0.20.04.1~esm1"}]}],"versions":["2.1.0-3"]},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"libowasp-esapi-java","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.3.1-1ubuntu0.1~esm1"}]}],"versions":["2.1.0-3.1","2.2.3.1-1"]}],"products":[{"vendor":"esapi","product":"esapi-java-legacy"},{"vendor":"netapp","product":"active_iq_unified_manager"},{"vendor":"netapp","product":"oncommand_workflow_automation"},{"vendor":"oracle","product":"weblogic_server"},{"vendor":"owasp","product":"enterprise_security_api"}],"references":[{"url":"https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/esapi4java-core-2.3.0.0-release-notes.txt","tags":["x_transferred","Release Notes","web","report"]},{"url":"https://github.com/ESAPI/esapi-java-legacy/security/advisories/GHSA-q77q-vx4q-xx6q","tags":["x_transferred","Third Party Advisory","advisory","web","report"]},{"url":"https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-security-bulletin8.pdf","tags":["x_transferred","Exploit","Mitigation","Third Party Advisory","web","report"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["x_transferred","Patch","Third Party Advisory","web"]},{"url":"https://security.netapp.com/advisory/ntap-20230127-0014/","tags":["x_transferred","Third Party Advisory","advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/07/msg00010.html","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24891","tags":["advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20230127-0014","tags":["web"]},{"url":"https://github.com/advisories/GHSA-q77q-vx4q-xx6q"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24891.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-24891","tags":["advisory"]},{"url":"https://github.com/ESAPI/esapi-java-legacy","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2022-24891","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-24891","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-8181-1","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2022-24891","title":"Cross-site Scripting in org.owasp.esapi:esapi -- antisamy-esapi.xml configuration file","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.","status":"published","published":"2022-04-27T00:00:00Z","modified":"2025-11-03T19:26:55.13Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:34:34.940806Z"}],"euvd":[{"id":"EUVD-2022-1809","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.","status":"published","published":"2022-04-27T00:00:00Z","modified":"2025-11-03T19:26:55Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T19:49:34.152725Z"}],"ghsa":[{"id":"GHSA-q77q-vx4q-xx6q","title":"Cross-site Scripting in org.owasp.esapi:esapi","description":"### Impact\nThere is a potential for an XSS vulnerability in ESAPI caused by a incorrect regular expression for \"onsiteURL\" in the **antisamy-esapi.xml** configuration file that can cause URLs with the \"javascript:\" scheme to NOT be sanitized. See the reference below for full details.\n\n### Patches\nPatched in ESAPI 2.3.0.0 and later. See important remediation details in the reference given below.\n\n### Workarounds\nManually edit your **antisamy-esapi.xml** configuration files to change the \"onsiteURL\" regular expression as per remediation instructions in the reference below.\n\n### References\n[Security Bulletin 8](https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-security-bulletin8.pdf)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email one of the project co-leaders. See email addresses listed on  the [OWASP ESAPI wiki](https://owasp.org/www-project-enterprise-security-api/) page, under \"Leaders\".\n* Send email to one of the two ESAPI related Google Groups listed under [Where to Find More Information on ESAPI](https://github.com/ESAPI/esapi-java-legacy#where-to-find-more-information-on-esapi) on our [README.md](https://github.com/ESAPI/esapi-java-legacy#readme) page.","status":"published","published":"2022-04-27T21:09:46Z","modified":"2025-11-03T22:28:37Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:39:05.278442Z"}],"nvd":[{"id":"CVE-2022-24891","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.","status":"published","published":"2022-04-27T21:15:08.523Z","modified":"2026-06-17T04:32:44.617Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"secondary"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:07:18.660414Z"}],"osv":[{"id":"CVE-2022-24891","title":"Cross-site Scripting in org.owasp.esapi:esapi -- antisamy-esapi.xml configuration file","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.","status":"published","published":"2022-04-27T00:00:00Z","modified":"2026-10-28T02:31:04.138366619Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:44:24.428403Z"},{"id":"DEBIAN-CVE-2022-24891","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.","status":"published","published":"2022-04-27T21:15:08.523Z","modified":"2026-11-03T08:02:13.777219413Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-03T08:24:50.542442Z"},{"id":"GHSA-q77q-vx4q-xx6q","title":"Cross-site Scripting in org.owasp.esapi:esapi","description":"### Impact\nThere is a potential for an XSS vulnerability in ESAPI caused by a incorrect regular expression for \"onsiteURL\" in the **antisamy-esapi.xml** configuration file that can cause URLs with the \"javascript:\" scheme to NOT be sanitized. See the reference below for full details.\n\n### Patches\nPatched in ESAPI 2.3.0.0 and later. See important remediation details in the reference given below.\n\n### Workarounds\nManually edit your **antisamy-esapi.xml** configuration files to change the \"onsiteURL\" regular expression as per remediation instructions in the reference below.\n\n### References\n[Security Bulletin 8](https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-security-bulletin8.pdf)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email one of the project co-leaders. See email addresses listed on  the [OWASP ESAPI wiki](https://owasp.org/www-project-enterprise-security-api/) page, under \"Leaders\".\n* Send email to one of the two ESAPI related Google Groups listed under [Where to Find More Information on ESAPI](https://github.com/ESAPI/esapi-java-legacy#where-to-find-more-information-on-esapi) on our [README.md](https://github.com/ESAPI/esapi-java-legacy#readme) page.","status":"published","published":"2022-04-27T21:09:46Z","modified":"2025-11-03T22:44:12.880093Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:54.055966Z"},{"id":"UBUNTU-CVE-2022-24891","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.","status":"published","published":"2022-04-27T21:15:00Z","modified":"2026-04-17T09:47:05.399563Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T16:53:53.13624Z"},{"id":"DLA-4246-1","title":"libowasp-esapi-java - security update","status":"published","published":"2025-07-21T00:00:00Z","modified":"2026-03-09T02:11:40.886784Z","updated_at":"2026-11-02T15:46:12.7027Z"}]}}
