Using xml2json with Default XML Parser Settings
Express applications use xml2json library with default configuration that doesn't explicitly disable external entity processing: xml2json.toJson(xmlString) or xml2json.toJson(xmlString, {}) without security options. The xml2json library relies on underlying XML parsers (libxmljs) which default to processing external entities and DTD declarations. When parsing untrusted XML containing <!ENTITY xxe SYSTEM "file:///etc/passwd"> declarations, the parser resolves these entities by default, enabling file disclosure, SSRF to internal services at http://169.254.169.254/, or billion laughs denial-of-service attacks through recursive entity expansion.