CVE-2021-3869: Improper Restriction of XML External Entity Reference in Stanford CoreNLP

Summary

24/05/2022
Yes i
High
7.5

CVE-2021-3869: Improper Restriction of XML External Entity Reference in Stanford CoreNLP. Affects edu.stanford.nlp:stanford-corenlp versions < 4.3.1. Fixed in 4.3.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Stanford CoreNLP is an open-source natural language processing library developed by Stanford University. It provides a set of human language technology tools that can analyze and understand text. The library is widely used in various applications, including information extraction, sentiment analysis, and named entity recognition. However, versions of Stanford CoreNLP up to 4.3.0 are vulnerable to an improper restriction of XML external entity reference vulnerability.

Vulnerability Detail

The vulnerability in Stanford CoreNLP arises from its improper restriction of XML external entity references. This vulnerability allows an attacker to exploit the XML parsing functionality of the library to read arbitrary files from the server or cause a denial of service by initiating resource-intensive XML entity expansion attacks. An attacker can craft a malicious XML file that, when processed by the vulnerable CoreNLP version, triggers the external entity reference and leads to unauthorized access or resource exhaustion.

How To Fix

Latest published version: 4.6.0 as of 22 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

4.3.1

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to update to the fixed version of Stanford CoreNLP to mitigate the risk.

Conclusion

The vulnerability in Stanford CoreNLP (CVE-2021-3869) exposes the application to potential unauthorized access and denial of service attacks. It is crucial to update to the fixed version (4.3.1 or later) to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for edu.stanford.nlp:stanford-corenlp →

Share this vulnerability

FAQ

Stanford CoreNLP is an open-source natural language processing library developed by Stanford University. It provides a range of tools for analyzing and understanding text.

This vulnerability allows an attacker to read arbitrary files from the server or cause a denial of service by exploiting the XML parsing functionality of Stanford CoreNLP.

Versions up to 4.3.0 of Stanford CoreNLP are affected by this vulnerability.

No, there is no known workaround for this vulnerability. It is crucial to update to the fixed version of Stanford CoreNLP.

To fix this vulnerability, upgrade Stanford CoreNLP to version 4.3.1 or later.

Related vulnerabilities

Recent vulnerabilities recorded for edu.stanford.nlp:stanford-corenlp.

How To Fix

Latest published version: 4.6.0 as of 22 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

4.3.1

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback