Skip to content

Commit b8be33a

Browse files
committed
[Fix][style] Mitigate XSS vulnerabilities
1 parent f153465 commit b8be33a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fixcore/fixcore/infra_apps/local_runtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async def generate_template(
5858
argv: List[str],
5959
) -> AsyncIterator[str]:
6060
graphdb = self.dbaccess.get_graph_db(graph)
61-
env = Environment(extensions=["jinja2.ext.do", "jinja2.ext.loopcontrols"], enable_async=True)
61+
env = Environment(extensions=["jinja2.ext.do", "jinja2.ext.loopcontrols"], enable_async=True, autoescape=True)
6262
template = env.from_string(manifest.source)
6363

6464
model = await self.model_handler.load_model(graph)

0 commit comments

Comments
 (0)