Skip to content

Commit a0a9702

Browse files
committed
We audited that there is no XSS risk in error page
1 parent 14a6be5 commit a0a9702

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/auth_error.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
<body>
1212
<h2>Login Failure</h2>
1313
<dl>
14+
{#
15+
Flask automatically escapes these unsafe input, so we do not have to.
16+
See also https://flask.palletsprojects.com/en/2.0.x/templating/#jinja-setup
17+
#}
1418
<dt>{{ result.get("error") }}</dt>
1519
<dd>{{ result.get("error_description") }}</dd>
1620
</dl>

0 commit comments

Comments
 (0)