A vulnerability was found in ESAPI esapi-java-legacy and classified as critical. This issue affects the function
Encoder.encodeForSQL
of the component SQL Injection Defense. The manipulation leads to improper neutralization of special elements.
The identification of this vulnerability is CVE-2025-5878. The attack may be initiated remotely. Furthermore, there is an exploit available.
It is recommended to upgrade the affected component.
The project was contacted early about this issue and handled it with an exceptional level of professionalism. In the new release the feature was disabled by default and any attempt to use it will trigger a warning. Furthermore, the misleading Java class documentation was updated to warn about the risks.