Skip to content

Disable SUPPORT_DTD for XMLInputFactory unless explicitly overridden [CVE-2016-7051] #211

@cowtowncoder

Description

@cowtowncoder

Although XML specification defines DTD handling as part of core xml processing, for most XML use cases for networking systems DTDs are either not used, or are minority use case. Conversely use of DTDs is often actually an anti-pattern considering access restrictions and overhead.
With this in mind, it would probably make sense to change defaults to disable DTD processing and just allow changing settings to enable it for cases where it is needed, as opposed to the other way around.

Compared to other default changes it would probably make sense to actually add a specific feature; but if not possible, then just simple setter for XmlMapper. Regardless it'd be easier to do this than to expect user to pre-configure XMLInputFactory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cveIssues related to public CVEs (security vuln reports)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions