T08 · Insecure Dependencies
- Location
scripts/deployment/windows/install.ps1:157- Finding
Unpinned Third-Party Dependencies Permit Mutable Code Execution
- Content
View full analysis
=3.0,<4' -i 'https://www.paddlepaddle.org.cn/packages/stable/cpu/' if ($LASTEXITCODE -ne 0) { throw 'Could not install the PaddlePaddle CPU runtime.' } & $venvPython -m pip install paddleocr pillow python-docx markdown if ($LASTEXITCODE -ne 0) { throw 'Could not install PaddleOCR and document export dependencies.' } } ``` ### Technical Analysis The installer retrieves and installs executable third-party components without pinning them to immutable versions or verified package hashes: - OpenCLI uses the mutable `@latest` tag. - PaddlePaddle permits any release in the broad `>=3.0,<4` range. - PaddleOCR, Pillow, python-docx, and Markdown have no version constraints. - pip itself is upgraded to whichever ...[truncated 2549 chars]- Remediation
View remediation
