KOSASIH / ExoGenesis

Use of jinja2 templates with autoescape=False detected BAN-B701
Security
Critical
3 months ago3 months old
By default, jinja2 sets autoescape to False. Consider using autoescape=True or use the select_autoescape function to mitigate XSS vulnerabilities.
19        os.makedirs(user_guide_dir)
20
21    # Load the Jinja2 template for the user guide
22    env = Environment(loader=FileSystemLoader("templates"))23    user_guide_template = env.get_template("user_guide.md")
24
25    # Generate the user guide content