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

Published Apr 27, 2022
·
Updated

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

11 affected componentsFixes available
OWASP Enterprise Security API<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 Linux
NetApp Active Iq Unified Manager Vmware Vsphere
NetApp Active Iq Unified Manager Windows
NetApp OnCommand Workflow Automation
debian/libowasp-esapi-java<2.4.0.0-1
2.4.0.0-1
debian/libowasp-esapi-java<2.4.0.0-1
2.4.0.0-1
debian/libowasp-esapi-java
2.4.0.0-22.4.0.0-2.12.4.0.0-3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/libowasp-esapi-java to 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
  2. Upgrade

    Upgrade debian/libowasp-esapi-java to a version that resolves this vulnerability.

    Fixed in 2.4.0.0-1
  3. Upgrade

    Upgrade org.owasp.esapi:esapi to a version that resolves this vulnerability.

    Fixed in 2.3.0.0
  4. 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

Apr 27, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·09:15 PM
DescriptionSeverityAffected Software
Aug 17, 2025
Exploit Published
via GitHub·02:58 PM

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

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.

2

How severe is CVE-2022-24891?

CVE-2022-24891 has a severity score of 6.1 (Medium).

3

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.

4

How can I fix CVE-2022-24891?

To fix CVE-2022-24891, upgrade to ESAPI version 2.3.0.0 or higher.

5

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].

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203