# CVE-2021-3878: Improper Restriction of XML External Entity Reference in stanfordnlp/corenlp

- Severity: Critical 9.8 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.89%, higher than 80% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-10-15T13:40:21.000Z
- Modified: 2026-06-17T04:05:55.970Z
- Also known as: GHSA-5h9g-8xcv-qjq9
- Weaknesses: CWE-611
- Assigned by: @huntrdev

## Description

corenlp is vulnerable to Improper Restriction of XML External Entity Reference

(As written by CVE List.)

## Affected

- stanfordnlp stanfordnlp/corenlp: from unspecified up to 4.3.0
- edu.stanford.nlp:stanford-corenlp (Maven): before 4.3.1
- stanford corenlp: before 4.3.1

## Every score

- @huntrdev: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://huntr.dev/bounties/a11c889b-ccff-4fea-9e29-963a23a63dd2> (exploit, patch, third-party-advisory, web)
- <https://github.com/stanfordnlp/corenlp/commit/e5bbe135a02a74b952396751ed3015e8b8252e99> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3878> (advisory)
- <https://github.com/stanfordnlp/CoreNLP> (package)

## Sources

- CVE List: [CVE-2021-3878](https://www.cve.org/CVERecord?id=CVE-2021-3878), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-5h9g-8xcv-qjq9](https://github.com/advisories/GHSA-5h9g-8xcv-qjq9), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-3878](https://nvd.nist.gov/vuln/detail/CVE-2021-3878), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3878 · Whole record: https://cve.day/CVE-2021-3878.json · Rebuilt by cve.day 2026-11-25T22:58:04.510Z
