CVE-2026-62296: Java Xml Documentbuilderfactory Missing Max Element Depth

DocumentBuilderFactory is initialized without configuring maximum XML element nesting depth via `jdk.xml.maxElementDepth`. Parsing deeply nested XML structures without depth bounds can lead to unbounded recursion, StackOverflowError, and Denial of Service (DoS).

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Java
greprules fetch cve-2026-62296-java-xml-documentbuilderfactory-missing-max-element-depth --engine opengrep

Description

DocumentBuilderFactory is initialized without configuring maximum XML element nesting depth via `jdk.xml.maxElementDepth`. Parsing deeply nested XML structures without depth bounds can lead to unbounded recursion, StackOverflowError, and Denial of Service (DoS).