Skip to content

Fix Jinja2 autoescape disabled XSS vulnerability#171

Merged
prabinoid merged 1 commit intonaxa-devfrom
pr-7217
Apr 13, 2026
Merged

Fix Jinja2 autoescape disabled XSS vulnerability#171
prabinoid merged 1 commit intonaxa-devfrom
pr-7217

Conversation

@prabinoid
Copy link
Copy Markdown

Enable autoescape=True in the Jinja2 Environment to prevent cross-site scripting via user-controlled template variables. Flagged by Bandit (B701) and Semgrep.

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation
  • 🧑‍💻 Refactor
  • ✅ Test
  • 🤖 Build or CI
  • ❓ Other (please specify)

Related Issue

Example: Fixes #123

Describe this PR

A brief description of how this solves the issue.

Screenshots

Please provide screenshots of the change.

Alternative Approaches Considered

Did you attempt any other approaches that are not documented in code?

Review Guide

Notes for the reviewer. How to test this change?

Checklist before requesting a review

[optional] What gif best describes this PR or how it makes you feel?

Enable autoescape=True in the Jinja2 Environment to prevent cross-site scripting via user-controlled template variables.
Flagged by Bandit (B701) and Semgrep.
@prabinoid prabinoid merged commit a3672d6 into naxa-dev Apr 13, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants