ESAPI esapi-java-legacy SQL Injection Defense Encoder.encodeForSQL special element
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ESAPI | esapi-java-legacy | 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 | 2.7.0.0 | Patch available | CNA |
- 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
- 2026-10-02 Threatist record created from CVE-2025-5878
- 2026-10-03 Alias added: GHSA-hxjw-v2v5-hpcr
References
Patch 3
Sources
- CVE-2025-5878 · CVE Program
- CVE-2025-5878 · NVD
- FIRST EPSS
- GHSA-hxjw-v2v5-hpcr · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences