deepsourcestatus / test-repository

XML parsing may be vulnerable to XXE attacks JS-D022
Security
Major
8 months ago8 months old
Found unsafe XML parsing
 16
 17const xml = readFileSync('data.xml', 'utf8')
 18// insecure XML parse
 19const xmlDoc = libxmljs.parseXmlString(xml, { noblanks: true, noent: true, nocdata: true }) 20console.log(xmlDoc)
 21
 22httpProxy.createProxyServer({