In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsA fix was pushed into the master
branch but not yet published.
org.webjars.npm:katex is a Fast math typesetting for the web.
Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output when rendering untrusted mathematical expressions with renderToString
due to improper validation of attribute name argument in \htmlData
. An attacker can include malicious input using \htmlData
, which eventually could result in arbitrary JavaScript execution or generate invalid HTML.
Avoid using or turning off the trust
option, or set it to forbid \htmlData
commands.
Forbid inputs containing the substring "\\htmlData"
.
Sanitize HTML output from KaTeX.