CVE-2022-24891: Cross-site Scripting in org.owasp.esapi:esapi -- antisamy-esapi.xml configuration file
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/libowasp-esapi-javato a version that resolves this vulnerability.Fixed in 2.4.0.0-2Fixed in 2.4.0.0-2.1Fixed in 2.4.0.0-3 - Upgrade
Upgrade
debian/libowasp-esapi-javato a version that resolves this vulnerability.Fixed in 2.4.0.0-1 - Upgrade
Upgrade
org.owasp.esapi:esapito a version that resolves this vulnerability.Fixed in 2.3.0.0 - Configuration
Manually edit the antisamy-esapi.xml configuration files to change the onsiteURL regular expression so javascript: URLs are correctly sanitized.
ESAPI onsiteURL
Event History
Frequently Asked Questions
What is CVE-2022-24891?
CVE-2022-24891 refers to a cross-site scripting vulnerability in ESAPI (The OWASP Enterprise Security API) caused by an incorrect regular expression.
How severe is CVE-2022-24891?
CVE-2022-24891 has a severity score of 6.1 (Medium).
Which software versions are affected by CVE-2022-24891?
CVE-2022-24891 affects ESAPI versions up to exclusive 2.3.0.0, Oracle WebLogic Server 12.2.1.3.0, Oracle WebLogic Server 12.2.1.4.0, Oracle WebLogic Server 14.1.1.0.0, NetApp Active Iq Unified Manager, Apple iPadOS, Apple watchOS, and NetApp OnCommand Workflow Automation.
How can I fix CVE-2022-24891?
To fix CVE-2022-24891, upgrade to ESAPI version 2.3.0.0 or higher.
Where can I find more information about CVE-2022-24891?
You can find more information about CVE-2022-24891 at the following references: [link1], [link2], [link3].