Skip to content

fix: enable autoescape in jinja2 environment #1748

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

olliestanley
Copy link

Autoescaping is recommended by the jinja2 docs for security reasons, but is not yet enabled by default.

This PR enables it, which should prevent maliciously crafted datasets being used to create ydata-profiling reports containing XSS payloads. In the latest versions of ydata-profiling it is currently possible to perform these attacks.

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