Skip to content

Commit 8b4e9e3

Browse files
Avi-Robustaclaude
andauthored
ROB-1574 Bump idna to 3.15 and drop bundled pip wheel to fix CVEs (#555)
## Summary - **idna** 3.7 -> 3.15 in `pyproject.toml`, `poetry.lock` and `requirements.txt`: CVE-2026-45409 (Medium). Closes dependabot alerts #82, #83, #84. - **Dockerfile**: remove ensurepip's bundled `pip-25.0.1-py3-none-any.whl` from `python:3.12-slim`. The installed pip is already upgraded to 26.x, but the leftover wheel is what Artifact Registry flags on `devel/krr` for CVE-2025-8869, CVE-2026-3219, CVE-2026-6357, CVE-2026-8643 (Medium). ## Verification - `poetry lock --no-update` (Poetry 1.8.5): only idna changes in the lock - `pytest`: 55 passed - Built the image (`linux/arm64`): idna 3.15, pip 26.2.1, `ensurepip/_bundled/` empty, `import robusta_krr` and `krr.py --help` work - `grype` on the new image: no matches for idna, pip or any of the CVEs above (the current `devel/krr:fix_cves_2` image shows GHSA-65pc-fj4g-8rjx on idna 3.7) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: avi@robusta.dev <avi@robusta.dev> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 6b26df8 commit 8b4e9e3

4 files changed

Lines changed: 12 additions & 7 deletions

File tree

‎Dockerfile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ COPY ./requirements.txt requirements.txt
2222
RUN pip install --no-cache-dir --upgrade pip
2323
# Install the project dependencies
2424
RUN python -m ensurepip --upgrade
25+
# Bundled pip 25.0.1 wheel carries CVE-2025-8869, CVE-2026-3219/6357/8643
26+
RUN rm -f /usr/local/lib/python3.12/ensurepip/_bundled/pip-*.whl
2527
RUN pip install --no-cache-dir -r requirements.txt
2628

2729
# Copy the rest of the application code

‎poetry.lock‎

Lines changed: 8 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ requests = ">=2.33.0"
3737
pyyaml = "6.0.1"
3838
# pytest-asyncio >=1.3 (needed for pytest 9 / CVE-2025-71176) requires typing-extensions >=4.12
3939
typing-extensions = ">=4.12.0,<5"
40-
idna = "3.7"
40+
idna = "3.15"
4141
urllib3 = "^2.7.0"
4242
setuptools = "^83.0.0"
4343
# transitive deps pinned for CVE fixes

‎requirements.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fonttools==4.60.2 ; python_version >= "3.10" and python_full_version < "3.13"
1515
google-auth==2.28.2 ; python_version >= "3.10" and python_full_version < "3.13"
1616
grapheme==0.6.0 ; python_version >= "3.10" and python_full_version < "3.13"
1717
httmock==1.4.0 ; python_version >= "3.10" and python_full_version < "3.13"
18-
idna==3.7 ; python_version >= "3.10" and python_full_version < "3.13"
18+
idna==3.15 ; python_version >= "3.10" and python_full_version < "3.13"
1919
jmespath==1.0.1 ; python_version >= "3.10" and python_full_version < "3.13"
2020
kiwisolver==1.4.5 ; python_version >= "3.10" and python_full_version < "3.13"
2121
kubernetes==26.1.0 ; python_version >= "3.10" and python_full_version < "3.13"

0 commit comments

Comments
 (0)