Elementのアンマーシャリング中に、コード スキャン監査 (Veracode) から XML 外部エンティティ参照 (XXE) の脆弱性を取得しています。
public static <T> T unMarshal(org.w3c.dom.Element content, Class<T> clazz) throws JAXBException {
JAXBContext jaxbContext = JAXBContext.newInstance(clazz);
Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
return (T) unmarshaller.unmarshal(content, clazz).getValue();
}
上記のコードの XML 外部エンティティ参照 ('XXE') の不適切な制限を修正するにはどうすればよいですか?