T08 · Insecure Dependencies
- Location
scripts/mps_auto_upgrade.py:107- Finding
Automatic Runtime Installation of Unpinned Dependencies
- Content
View full analysis
={min_ver_str}" if min_ver_str else pkg_name try: installed_ver = _pkg_version(pkg_name) except PackageNotFoundError: to_install.append(spec) continue if min_ver and _ver_tuple(installed_ver) < min_ver: to_install.append(spec) if to_install: _pip_install(to_install) for prefix in ("tencentcloud", "qcloud_cos", "dotenv"): for key in list(sys.modules.keys()): if key == prefix or key.startswith(prefix + "."): del sys.modules[key] ``` The dependency file only specifies minimum versions: ```text tencentcloud-sdk-python>=3.1.139 cos-python-sdk-v5>=1.9.30 python-dotenv>=1.0.0 ``` ### Technical Analysis Nearly every operational script calls `check_sdk_version()` before performing its primary function. If a dependency is mis ...[truncated 2030 chars]- Remediation
View remediation
