Looking for the vulnerability index of Invicti's legacy products?
Spring Misconfiguration: HTML Escaping disabled - Vulnerability Database

Spring Misconfiguration: HTML Escaping disabled

Description

This Spring web application is configured to disable the automatic HTML escaping for Spring tags which may lead to Cross-Site Scripting vulnerabilities.

Remediation

It's recommended to enable HTML escaping for Spring tags. This can be configured from web.xml like in the example below: <pre> &lt;web-app&gt; ... &lt;context-param&gt; &lt;param-name&gt;defaultHtmlEscape&lt;/param-name&gt; &lt;param-value&gt;true&lt;/param-value&gt; &lt;/context-param&gt; ... &lt;/web-app&gt; </pre> At page level, it is defined as a tag-declaration. <pre> &lt;spring:htmlEscape defaultHtmlEscape=&quot;true&quot; /&gt; </pre>