chore: refresh vulnerable Docker dependencies#2011
Open
mvletter wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This refreshes dependency floors used by the Docker image to clear fix-available HIGH/CRITICAL Trivy findings in the runtime image.
Changes:
aiohttp,lxml,pillow,nltk,urllib3,brotli,pyOpenSSL, andcryptography.PyJWTto a patched<3range and makesetuptools/wheelexplicit in the Docker requirements.pip,setuptools, andwheelduring the Docker build./tmp/project/sbomfrom the runtime image afterCOPY . /tmp/project/; the checked-in SBOM currently describes older packages and caused Trivy to report stale vulnerable versions even when runtime packages were patched.dist-upgradeafter Playwright installs OS dependencies, so newly installed apt packages are also at current Bookworm security levels.Validation
uv lock --checkuv sync --locked --no-dev --python 3.12docker build --platform linux/amd64 -t crawl4ai:security-dependency-refresh .crawl4ai-doctorcompleted successfully and crawledhttps://crawl4ai.com.aiohttp 3.14.1lxml 6.1.1Pillow 12.2.0nltk 3.9.4urllib3 2.7.0pyOpenSSL 26.2.0cryptography 48.0.1brotli 1.2.0PyJWT 2.13.0setuptools 82.0.1wheel 0.47.0crawl4ai 0.8.9test ! -e /tmp/project/sbom.{"total":0,"by_pkg":[]}Note
A local
uv sync --locked --no-devagainst Python 3.14 failed because the existing lock resolvedtiktoken==0.9.0there and no wheel was available in this environment. The Docker/runtime path uses Python 3.12;uv sync --locked --no-dev --python 3.12passed.