Replace XSS-prone JSP scriptlets with <c:out>
ProprietaryReplaces <%= request.getParameter("x") %> and <%= request.getHeader("x") %> scriptlets in JSP files with the equivalent escaped <c:out value="${param.x}"/> / <c:out value="${header['x']}"/> tags, and inserts the JSTL core taglib at the top of the file if not already declared. Only fires on string-literal argument forms — arbitrary expressions inside <%= ... %> are left untouched for human review. Note: request.getParameter returns null for missing parameters and prints "null", whereas ${param.x} renders empty; review templates that rely on the literal string "null".
org. openrewrite. java. security. xss. FixXssVulnerabilityJspmod run . --recipe= org. openrewrite. java. security. xss. FixXssVulnerabilityJspInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.