{"id":"CVE-2022-24891","aliases":["CVE-2022-24891","GHSA-q77q-vx4q-xx6q"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site Scripting in org.owasp.esapi:esapi -- antisamy-esapi.xml configuration file","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"ESAPI (The OWASP Enterprise Security API) es una biblioteca de control de seguridad de aplicaciones web gratuita y de código abierto. En versiones anteriores a 2.3.0.0, se presentaba la posibilidad de una vulnerabilidad de tipo cross-site scripting en ESAPI causada por una expresión regular incorrecta para \"onsiteURL\" en el archivo de configuración **antisamy-esapi.xml** que puede causar que las URLs \"javascript:\" no sean saneadas correctamente. Este problema ha sido  corregido en ESAPI versión 2.3.0.0. Como medida de mitigación, edite manualmente los archivos de configuración **antisamy-esapi.xml** para cambiar la expresión regular \"onsiteURL\". En las notas de la versión y en el boletín de seguridad de los mantenedores se presenta más información sobre la corrección de la vulnerabilidad, incluida la mitigación","source":"nvd"}],"published":"2022-04-27T00:00:00.000Z","modified":"2026-06-17T04:32:44.617Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"<= 2.2.3.1","status":"affected"}],"vendor":"ESAPI","product":"esapi-java-legacy","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.3.0.0"}],"ecosystem":"Maven","package":"org.owasp.esapi:esapi","purl":"pkg:maven/org.owasp.esapi/esapi","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.3.0.0"}],"vendor":"owasp","product":"enterprise_security_api","cpe":"cpe:2.3:a:owasp:enterprise_security_api:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"12.2.1.3.0"},{"status":"affected","version":"12.2.1.4.0"},{"status":"affected","version":"14.1.1.0.0"}],"vendor":"oracle","product":"weblogic_server","cpe":"cpe:2.3:a:oracle:weblogic_server:12.2.1.3.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"active_iq_unified_manager","cpe":"cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:linux:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"oncommand_workflow_automation","cpe":"cpe:2.3:a:netapp:oncommand_workflow_automation:-:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/esapi4java-core-2.3.0.0-release-notes.txt","tags":["release-notes","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ESAPI/esapi-java-legacy/security/advisories/GHSA-q77q-vx4q-xx6q","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-security-bulletin8.pdf","tags":["exploit","mitigation","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20230127-0014/","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/07/msg00010.html","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24891","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ESAPI/esapi-java-legacy","tags":["package"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20230127-0014","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-04-22T15:48:36.272Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-24891","url":"https://www.cve.org/CVERecord?id=CVE-2022-24891","licence":"CVE Terms of Use","modified":"2025-11-03T19:26:55.130Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q77q-vx4q-xx6q","url":"https://github.com/advisories/GHSA-q77q-vx4q-xx6q","licence":"CC-BY-4.0","modified":"2025-11-03T22:44:12.880Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-24891","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24891","licence":"Public domain","modified":"2026-06-17T04:32:44.617Z"}],"updatedAt":"2026-11-25T22:58:11.277Z","epss":{"score":0.01715,"percentile":0.78096,"date":"2026-12-01T12:00:22.000Z"}}