Read the docs
TI-2025-05306 Aliases CVE-2025-5878GHSA-hxjw-v2v5-hpcr

ESAPI esapi-java-legacy SQL Injection Defense Encoder.encodeForSQL special element

Priority MEDIUM 64CWE-138Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
—
Confidentiality · integrity · availability
Low · Low · Low
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

A vulnerability was found in ESAPI esapi-java-legacy and classified as problematic. This issue affects the interface Encoder.encodeForSQL of the SQL Injection Defense. An attack leads to an improper neutralization of special elements. The attack may be initiated remotely and an exploit has been disclosed to the public. The project was contacted early about this issue and handled it with an exceptional level of professionalism. Upgrading to version 2.7.0.0 is able to address this issue. Commit ID f75ac2c2647a81d2cfbdc9c899f8719c240ed512 is disabling the feature by default and any attempt to use it will trigger a warning. And commit ID e2322914304d9b1c52523ff24be495b7832f6a56 is updating the misleading Java class documentation to warn about the risks.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00494 42nd percentileScored 2026-11-07
Fix Fixed esapi-java-legacy (ESAPI): 2.7.0.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
ESAPIesapi-java-legacy2.0-rc10; 2.0-rc11; 2.0.1; 2.0GA1; 2.1.0; 2.1.0.1; 2.2.0.0; 2.2.0.0-RC1; 2.2.0.0-RC2; 2.2.0.0-RC3; 2.2.1.0; 2.2.1.0-RC1; 2.2.1.1; 2.2.2.0; 2.2.3.0; 2.2.3.1; 2.3.0.0; 2.4.0.0; 2.5.0.0; 2.5.1.0; 2.5.2.0; 2.5.3.0; 2.5.3.1; 2.5.4.0; 2.5.5.0; 2.6.0.0; 2.6.1.0; 2.6.2.02.7.0.0Patch availableCNA
  • esapi-java-legacy VendorESAPI Affected 2.0-rc10; 2.0-rc11; 2.0.1; 2.0GA1; 2.1.0; 2.1.0.1; 2.2.0.0; 2.2.0.0-RC1; 2.2.0.0-RC2; 2.2.0.0-RC3; 2.2.1.0; 2.2.1.0-RC1; 2.2.1.1; 2.2.2.0; 2.2.3.0; 2.2.3.1; 2.3.0.0; 2.4.0.0; 2.5.0.0; 2.5.1.0; 2.5.2.0; 2.5.3.0; 2.5.3.1; 2.5.4.0; 2.5.5.0; 2.6.0.0; 2.6.1.0; 2.6.2.0 Fixed in 2.7.0.0 Patch available CNA

Remediation

  • Fix · CNA esapi-java-legacy (ESAPI) Fixed in 2.7.0.0

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-5878
  2. 2026-10-03 Alias added: GHSA-hxjw-v2v5-hpcr

References

Sources