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

Medium 5.4 Published Updated

Attackers can execute arbitrary scripts via unsanitized javascript URLs due to a flawed regex in the ESAPI library configuration.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-24891?

CVE-2022-24891 is a medium-severity cross-site scripting vulnerability in Netapp Active Iq Unified Manager, published on 27 Apr 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

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

Weakness: CWE-79

Which versions are affected by CVE-2022-24891?

2 open source packages ship an affected version, including org.owasp.esapi:esapi. It affects 4 products.

PackageAffectedFixed in
org.owasp.esapi:esapi MavenAll versions2.3.0.0
org.owasp.esapi:esapi MavenAll versions2.3.0.0

Products include Netapp Active Iq Unified Manager, Netapp Oncommand Workflow Automation, Oracle Weblogic Server, Owasp Enterprise Security Api.

How do I fix CVE-2022-24891?

Upgrade org.owasp.esapi:esapi to 2.3.0.0 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2022-24891 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-24891 exists.

Public exploit code: 1 proofs of concept on GitHub.

All Netapp Active Iq Unified Manager vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-24891, GHSA-q77q-vx4q-xx6q, UBUNTU-CVE-2022-24891.

Is CVE-2022-24891 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free