Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XSS Section is good, but clarify text/template #73

Open
lojikil opened this issue Sep 21, 2020 · 0 comments
Open

XSS Section is good, but clarify text/template #73

lojikil opened this issue Sep 21, 2020 · 0 comments

Comments

@lojikil
Copy link

lojikil commented Sep 21, 2020

We mention that text/template won't save you from XSS, but the documentation explicitly states that it is unsafe for handling user input. We should clarify that the threat model for text/template does not handle user input, and that html/template is only safe iff passed user data as parameters (e.g. we need to avoid Template Injection)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant