CVE-2021-3869:
Improper Restriction of XML External Entity Reference in Stanford CoreNLP
7.5
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
5/24/2022
Updated
1/27/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
edu.stanford.nlp:stanford-corenlp | maven | <= 4.3.0 | 4.3.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from using DocumentBuilderFactory.newInstance() without configuring security features to prevent XXE attacks. The patch introduced a safeDocumentBuilderFactory() method that disables DTDs, external entities, and enables secure processing. All identified functions were directly instantiating DocumentBuilderFactory without these protections in pre-patch versions, making them vulnerable to external entity injection.