Skip to content

Commit 6bfdec0

Browse files
authored
ICM: Protect RCE sandbox (#4128)
Protect sandbox environment against remote code execution.
1 parent 76bf851 commit 6bfdec0

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/promptflow-core/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# promptflow-core package
22

3+
## v1.18.2 (2026.4.21)
4+
5+
### Bugs fixed
6+
7+
- Resolving an RCE using PF_USE_SANDBOX_FOR_JINJA.
8+
39
## v1.18.1 (2025.6.10)
410

511
### Bugs fixed

src/promptflow-core/promptflow/executor/_service/utils/service_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def generate_error_response(ex: Union[dict, Exception]):
7171
def set_environment_variables(environment_variables: Mapping[str, Any]):
7272
def filter_env_variables(environ: Dict[str, Any]) -> Dict[str, Any]:
7373
"""Remove problematic environment variables."""
74-
deny_list = {"PYTHONWARNINGS", "BROWSER"}
74+
deny_list = {"PYTHONWARNINGS", "BROWSER", "PF_USE_SANDBOX_FOR_JINJA"}
7575
return {k: v for k, v in environment_variables.items() if k not in deny_list}
7676

7777
if isinstance(environment_variables, dict) and environment_variables:

0 commit comments

Comments
 (0)