Skip to content
Heist/ feed
UnratedFix available

DEBIAN-CVE-2026-40682

Type: advisorySource: OSV1 source record

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. The public Dictionary(InputStream) constructor delegates directly to this method and is the documented API for loading user-supplied dictionaries, making untrusted input a realistic scenario. Mitigation: 2.x users should upgrade to 2.5.9. 3.x users should upgrade to 3.0.0-M3. Users who cannot upgrade immediately should ensure that all dictionary files are sourced from trusted origins and should consider wrapping the Dicti

Announced Source revision 1
Original source ↗

DEBIAN-CVE-2026-40682

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:DEBIAN-CVE-2026-40682

apache-opennlp

Source reference: /affected/0/package/name

Affected versions
2.1.0-1

Source reference: /affected/0/versions

2.2.0-1

Source reference: /affected/0/versions

2.2.0-1~exp

Source reference: /affected/0/versions

2.3.0-1

Source reference: /affected/0/versions

2.3.1-1

Source reference: /affected/0/versions

2.3.1-2

Source reference: /affected/0/versions

2.3.2-1

Source reference: /affected/0/versions

2.3.3-1

Source reference: /affected/0/versions

2.4.0-1

Source reference: /affected/0/versions

2.5.0-1

Source reference: /affected/0/versions

2.5.1-1

Source reference: /affected/0/versions

2.5.12-1

Source reference: /affected/0/versions

2.5.2-1

Source reference: /affected/0/versions

2.5.3-1

Source reference: /affected/0/versions

2.5.9-1

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

apache-opennlp

Source reference: /affected/1/package/name

Affected versions
2.5.12-1

Source reference: /affected/1/versions

2.5.3-1

Source reference: /affected/1/versions

2.5.9-1

Source reference: /affected/1/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

apache-opennlp

Source reference: /affected/2/package/name

Affected versions
2.5.3-1

Source reference: /affected/2/versions

Fixed versions
2.5.9-1

Source reference: /affected/2/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "apache-opennlp",
      "purl": "pkg:deb/debian/apache-opennlp?arch=source&distro=bookworm",
      "ecosystem": "Debian:12"
    },
    "versions": [
      "2.1.0-1",
      "2.2.0-1",
      "2.2.0-1~exp",
      "2.3.0-1",
      "2.3.1-1",
      "2.3.1-2",
      "2.3.2-1",
      "2.3.3-1",
      "2.4.0-1",
      "2.5.0-1",
      "2.5.1-1",
      "2.5.12-1",
      "2.5.2-1",
      "2.5.3-1",
      "2.5.9-1"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40682.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  },
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "apache-opennlp",
      "purl": "pkg:deb/debian/apache-opennlp?arch=source&distro=trixie",
      "ecosystem": "Debian:13"
    },
    "versions": [
      "2.5.12-1",
      "2.5.3-1",
      "2.5.9-1"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40682.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  },
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "2.5.9-1"
          }
        ]
      }
    ],
    "package": {
      "name": "apache-opennlp",
      "purl": "pkg:deb/debian/apache-opennlp?arch=source&distro=forky",
      "ecosystem": "Debian:14"
    },
    "versions": [
      "2.5.3-1"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40682.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#56962 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement