Home / ESAPI / esapi-java-legacy / CVE-2025-5878
CVE-2025-5878: is it exploited, and which versions of esapi-java-legacy are affected and fixed?
CVE-2025-5878 is an improper Neutralization of Special Elements vulnerability in esapi-java-legacy. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:38 UTC). Affected: esapi-java-legacy 2.0-rc10, esapi-java-legacy 2.0-rc11, esapi-java-legacy 2.0.1 and 25 more (CVE record by VulDB). Fixed in 2.7.0.0 (CVE record by VulDB). Severity: Medium (6.9, CVSS 4.0, from VulDB).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:38 UTC, CVE record November 19, 2026, 07:10 UTC and NVD November 19, 2026, 07:19 UTC.
What is CVE-2025-5878?
ESAPI esapi-java-legacy SQL Injection Defense Encoder.encodeForSQL special element
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.
From the CVE record by VulDB, last updated November 3, 2025, 20:06 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| 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 and 16 more ranges | 2.7.0.0 |
As the CVE record by VulDB states it, last updated November 3, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2025-5878?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.9 | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P | VulDB |
| High 7.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C | VulDB |
| High 7.3 | CVSS 3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C | VulDB |
| High 7.5 | CVSS 2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:OF/RC:C | VulDB |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-5878 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, June 30, 2025)
- EPSS
- 0.52% probability of exploitation activity in the next 30 days, percentile 45.6 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- VDB-314321 | ESAPI esapi-java-legacy SQL Injection Defense Encoder.encodeForSQL special element vdb-entry, technical-description
- VDB-314321 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- Submit #590149 | ESAPI esapi-java-legacy 2.6.2.0 SQL injection filtering bypass1 third-party-advisory
- Submit #590150 | ESAPI esapi-java-legacy 2.6.2.0 SQL injection filtering bypass2 (Duplicate) third-party-advisory
- https://github.com/uglory-gll/javasec/blob/main/ESAPI.md related
- https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-security-bulletin13.pdf related
- https://github.com/ESAPI/esapi-java-legacy/commit/f75ac2c2647a81d2cfbdc9c899f8719c240ed512 patch
- https://github.com/ESAPI/esapi-java-legacy/releases/tag/esapi-2.7.0.0 patch
- https://github.com/ESAPI/esapi-java-legacy/commit/e2322914304d9b1c52523ff24be495b7832f6a56 patch
- https://lists.debian.org/debian-lts-announce/2025/07/msg00010.html
Who found and reported it?
- Longlong Gong (finder)
- uglory (VulDB User) (reporter)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- June 8, 2025
- Published
- June 29, 2025, 11:11 UTC
- CVE record updated
- November 3, 2025, 20:06 UTC by VulDB
- NVD
- Deferred, last modified June 17, 2026, 09:48 UTC
- Last checked
- CVE list November 19, 2026, 07:10 UTC; NVD November 19, 2026, 07:19 UTC; KEV December 3, 2026, 13:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect esapi-java-legacy?
- Apr 27, 2022CVE-2022-24891 esapi-java-legacy: cross-site scripting (XSS)
Every CVE in esapi-java-legacy
Questions about CVE-2025-5878
Is CVE-2025-5878 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:38 UTC. FIRST's EPSS gives it a 0.52% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of esapi-java-legacy are affected by CVE-2025-5878?
esapi-java-legacy 2.0-rc10, esapi-java-legacy 2.0-rc11, esapi-java-legacy 2.0.1, esapi-java-legacy 2.0GA1, esapi-java-legacy 2.1.0, esapi-java-legacy 2.1.0.1 and 22 more, per the CVE record by VulDB. The tables above give every range the sources list.
Which version fixes CVE-2025-5878?
2.7.0.0, per the CVE record by VulDB. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-5878?
Medium (6.9, CVSS 4.0, from VulDB). The severity table above shows each score with its source.
Where is the official record of CVE-2025-5878?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.