Skip to content

v0.14.0 — XSS autofix + baseline mode

Choose a tag to compare

@GabrielBBaldez GabrielBBaldez released this 16 Jun 13:18
· 34 commits to main since this release

Autofix now covers XSS

In addition to SQL injection, the autofix wraps the interpolated values written to the response in HtmlUtils.htmlEscape(...) and adds the import:

  - response.getWriter().write("<p>" + out + "</p>");
  + response.getWriter().write("<p>" + HtmlUtils.htmlEscape(out) + "</p>");

Verified end-to-end: applying the SQL + XSS fixes compiles cleanly and drops the benchmark's xss findings from 12 to 4 (the rest are cross-method or non-concatenation sinks, out of scope).

Baseline mode

spring-taint scan target/classes --libs … --baseline spring-taint-baseline.txt

The first run records the current findings; later runs report — and gate CI on — only findings not in the baseline. This lets a team adopt the tool on a legacy codebase and fail the build only on new issues. Fingerprints are line-independent, so the baseline survives code moving around.