Vulnerabilities

1 via 1 paths

Dependencies

203

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Severity
  • 1
Status
  • 1
  • 0
  • 0

medium severity
new

XML Injection

  • Vulnerable module: xml2js
  • Introduced through: @node-saml/passport-saml@5.1.1

Detailed paths

  • Introduced through: switcher-api@switcherapi/switcher-api › @node-saml/passport-saml@5.1.1 › @node-saml/node-saml@5.2.0 › xml2js@0.6.2

Overview

Affected versions of this package are vulnerable to XML Injection in the escapeCDATA function in lib/builder.js. An attacker can inject arbitrary XML elements and attributes into the generated document by supplying a value, serialized with the cdata option, that contains two or more ]]> sequences, since only the first is escaped and any later one prematurely closes the CDATA section ahead of attacker-controlled content. This requires the application to enable the non-default cdata: true builder option.

Remediation

There is no fixed version for xml2js.

References