Skip to content

Comments

Enable autoescape by default in Jinja2Templates#3148

Merged
Kludex merged 6 commits intomainfrom
enable-autoescape-jinja2
Feb 22, 2026
Merged

Enable autoescape by default in Jinja2Templates#3148
Kludex merged 6 commits intomainfrom
enable-autoescape-jinja2

Conversation

@Kludex
Copy link
Owner

@Kludex Kludex commented Feb 15, 2026

Kludex and others added 5 commits February 15, 2026 14:06
Use `jinja2.select_autoescape()` as the default when creating the Jinja2
environment from a directory. This is the recommended secure baseline per
Jinja2 documentation, and matches Flask's default behavior.

Co-Authored-By: RinZ27 <222222878+RinZ27@users.noreply.github.com>
@Kludex Kludex enabled auto-merge (squash) February 22, 2026 13:26
@Kludex Kludex merged commit 496b710 into main Feb 22, 2026
6 checks passed
@Kludex Kludex deleted the enable-autoescape-jinja2 branch February 22, 2026 13:27
Kludex added a commit that referenced this pull request Feb 23, 2026
Kludex added a commit that referenced this pull request Feb 23, 2026
* Version 1.0.0rc1

* Update release notes for 1.0.0rc1

* Update download count in release notes

* Add note about method in FileResponse

* Apply suggestions from code review

* Add #3148 to release notes for 1.0.0rc1

* Apply suggestion from @Kludex
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

Successfully merging this pull request may close these issues.

1 participant