LiveActive security incident?Get immediate response
CVE Record

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.

MediumCVSS 5.4Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

A flaw in OWASP ESAPI’s default AntiSamy configuration could let unsafe URLs evade sanitization and cause cross-site scripting in applications that rely on it. The issue is patched in ESAPI 2.3.0.0. Business impact is mainly account/session abuse or data exposure through a victim’s browser, not server takeover.

Executive priority

Treat as a moderate-priority web application risk. It should be fixed in normal patch cycles, faster for internet-facing systems handling user-generated content. There is no provided evidence of active exploitation, but XSS can still support credential theft, session abuse, and reputational impact.

Technical view

CVE-2022-24891 is CWE-79 in org.owasp.esapi:esapi before 2.3.0.0. The antisamy-esapi.xml onsiteURL regular expression could allow javascript: URLs to be incorrectly sanitized. CVSS 3.1 is 5.4 with network access, low complexity, no privileges, required user interaction, and limited confidentiality/integrity impact.

Likely exposure

Exposure is most likely in Java applications using ESAPI esapi-java-legacy <= 2.2.3.1, especially where the bundled AntiSamy policy sanitizes user-controlled URL content. Downstream exposure may exist through products or distributions referenced by Oracle, NetApp, and Debian advisories.

Exploitation context

The source bundle does not show CISA KEV listing or confirmed active exploitation. Practical exploitation requires a vulnerable application path where attacker-supplied URL-bearing content is sanitized with the affected configuration and then rendered to a user who interacts with it.

Researcher notes

Key uncertainty is application reachability: ESAPI presence alone does not prove exploitability. Confirm whether the affected AntiSamy configuration is actually used on attacker-controlled input and whether sanitized output is rendered in browsers. Avoid assuming all Oracle, NetApp, or Debian environments are vulnerable without product-specific mapping.

Mitigation direction

  • Upgrade ESAPI to version 2.3.0.0 or later where feasible.
  • Apply the maintainers’ antisamy-esapi.xml onsiteURL workaround if immediate upgrade is blocked.
  • Review Oracle, NetApp, or Debian guidance if ESAPI is supplied through those products.
  • Prioritize externally facing applications that render user-submitted links or rich text.
  • Track remediation through dependency management and vendor patch processes.

Validation and detection

  • Inventory org.owasp.esapi:esapi and esapi-java-legacy versions across applications.
  • Flag versions <= 2.2.3.1 as affected unless vendor guidance states otherwise.
  • Check deployed antisamy-esapi.xml files for the vulnerable onsiteURL regular expression.
  • Verify sanitization behavior in a safe test environment without using production data.
  • Confirm downstream vendor appliances, packages, or applications have received relevant updates.
Prepared
Confidence
high
Sources
8

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-79: User-session and phishing behavior lookup

Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-24891 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
5.4 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
7Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
5.4CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N2.82.5Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

5.4Medium
CVSS 3.1 vector shape for CVE-2022-24891Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
ESAPIesapi-java-legacy<= 2.2.3.1Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-79 · source CWE mapping

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.