patchminder
No public exploit found CVE-2026-40682

XML external entityin Apache OpenNLP.

Published 4 May 2026 · Updated 2 Sep 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

No public exploit found; not on exploited lists.

Severity
Critical 9.1
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment · no login needed
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.5% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 1.9.5, 2.5.9, 3.0.0-M3
In plain words

XML External Entity (XXE) via Unsanitized Dictionary Parsing in Apache OpenNLP DictionaryEntryPersistor Versions Affected: before 2.5.9, before 3.0.0-M3 Description: The DictionaryEntryPersistor class initializes a static SAXParserFactory at class-load time without enabling FEATURE_SECURE_PROCESSING or disabling DTD processing. When create(InputStream, EntryInserter) is invoked, the only feature set on the XMLReader is namespace support · external entity resolution and DOCTYPE declarations remain fully enabled. An attacker who can supply a crafted dictionary file (e.g., a stop-word list or domain dictionary) containing a malicious DOCTYPE declaration can trigger local file disclosure via file:// entity references or server-side request forgery via http:// entity references during SAX parsing, before the application processes a single dictionary entry. This is inconsistent with the project's own XmlUtil.createSaxParser() helper, which correctly sets FEATURE_SECURE_PROCESSING and disallow-doctype-decl and is used by all other XML parsing paths in the codebase.

What to do now
  • Upgrade Apache OpenNLP to 1.9.5, 2.5.9, 3.0.0-M3 or later, whichever matches your release line.
  • Upgrade org.apache.opennlp:opennlp-tools (Maven) to 1.9.5, 2.5.9, 3.0.0-M3 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Apache OpenNLP
2.0 to before 2.5.9
2.5.9
CVE record
Apache OpenNLP
3.0.0-M1 to before 3.0.0-M3
3.0.0-M3
CVE record
Apache OpenNLP
before 1.9.5
1.9.5
CVE record
org.apache.opennlp:opennlp-tools (Maven)
2.0.0 to before 2.5.9
2.5.9
GitHub advisory
org.apache.opennlp:opennlp-tools (Maven)
3.0.0-M1 to before 3.0.0-M3
3.0.0-M3
GitHub advisory
org.apache.opennlp:opennlp-tools (Maven)
before 1.9.5
1.9.5
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 14 Apr 2026
    CVE ID reserved by apache.
  2. 4 May 2026
    Published in the CVE List.
  3. 2 Sep 2026
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other OpenNLP vulnerabilities

Same weakness: XML external entity

All CWE-611 vulnerabilities

References
Cite this page

Patchminder. CVE-2026-40682: XML external entity in Apache OpenNLP. https://patchminder.com/cve/cve-2026-40682/ (accessed 5 December 2026).