fix: Update Werkzeug to 2.3.8 (latest secure 2.x version)

- Upgrade Werkzeug from 2.2.3 to 2.3.8 in WebShop requirements
- Translate all comments to English (project language policy)
- Add security note for CVE-2024-34069 (debugger vulnerability)
- Document mitigation: debug mode disabled in production

Security Notes:
- CVE-2024-34069 affects Werkzeug debugger (dev mode only)
- Flask 3.x required for full fix, but incompatible with WebShop
- Mitigation: Benchmark runs locally, never with debug=True in production
- This is the latest secure version compatible with Flask 2.x

Fixes Dependabot Alert #2 (GHSA-2g68-c3qc-8985)
This commit is contained in:
TPTBusiness
2026-04-02 22:51:30 +02:00
parent e25da63862
commit 19b9d23952
@@ -1,21 +1,21 @@
# WebShop benchmark 依赖
# WebShop Benchmark Dependencies
#
# 前置要求:Java 11+ (JDK) faiss-cpu
# Prerequisites: Java 11+ (JDK) and faiss-cpu
# conda install -c conda-forge openjdk=11 faiss-cpu
#
# 安装命令:
# Installation:
# pip install -r benchmarks/webshop/requirements.txt
# python -m spacy download en_core_web_sm
#
# 注意:Flask/Werkzeug 已在主 requirements.txt 中固定为 2.x 版本
# Note: Flask/Werkzeug pinned to 2.x (Flask 3.x incompatible with WebShop)
# WebShop PyPI
# WebShop PyPI package
webshop
# 数据下载工具
# Data download tool
gdown
# WebShop 特有依赖
# WebShop specific dependencies
gym==0.24.0
beautifulsoup4==4.11.1
cleantext==1.1.4
@@ -24,6 +24,8 @@ rank_bm25==0.2.2
thefuzz==0.19.0
spacy==3.7.2
# 注意:Flask/Werkzeug 固定为 2.xFlask 3.x WebShop 不兼容)
# Note: Flask/Werkzeug pinned to 2.x (Flask 3.x incompatible with WebShop)
# Security Note: CVE-2024-34069 affects Werkzeug debugger (dev mode only)
# Mitigation: Never run with debug=True in production; benchmark runs locally
flask==2.2.5
Werkzeug==2.2.3
Werkzeug==2.3.8 # Latest 2.x with security patches