-
Notifications
You must be signed in to change notification settings - Fork 56
Closed
Labels
☢️ BugSomething isn't workingSomething isn't working
Description
Bug Description
Currently inside of pongo2 there's a setting that sets pongo2.SetAutoescape(false)
which disables HTML sanitization, as far as I can see. This makes the gofiber/template/django integration unusable for my project.
How to Reproduce
Steps to reproduce the behavior:
- Create a basic project including gofiber + gofiber/template/django
- Create a variable with a string
<script>alert("ALERTAAAA");</script>
- Print the variable into a template
- You have a potential XSS attack if the variable was created by user-input
Expected Behavior
I'd expect HTML sanitization to be active at all times. I'd also expect some documentation on how to explicitly deactivate sanitization for a non-user-input variable that is able to render valid HTML.
Template package Version
Django - v3.1.5
Code Snippet (optional)
No response
Checklist:
- I agree to follow Fiber's Code of Conduct.
- I have checked for existing issues that describe my problem prior to opening this one.
- I understand that improperly formatted bug reports may be closed without explanation.
Metadata
Metadata
Assignees
Labels
☢️ BugSomething isn't workingSomething isn't working