fix(deps): clear wheel + vcrpy CVEs in the umbrella test-requirements image - #1889
Open
thomasrockhu-codecov wants to merge 1 commit into
Open
fix(deps): clear wheel + vcrpy CVEs in the umbrella test-requirements image#1889thomasrockhu-codecov wants to merge 1 commit into
thomasrockhu-codecov wants to merge 1 commit into
Conversation
Raise the vcrpy floor to >=8.2.1 to clear GHSA-rpj2-4hq8-938g (arbitrary code execution via unsafe YAML cassette load). vcrpy 8.2.0+ captures a bare-host httpx request path as "" rather than "/" (upstream issue #1013, COV-45), which broke the pipedream webhook cassette's `path` matcher; drop the trailing slash on that one recorded URI so it matches again. Floor virtualenv to >=20.31.0 (transitive via pre-commit). From 20.31.0 it no longer bundles the `wheel` seed wheel on Python 3.13, removing the embedded wheel-0.45.1 that carried CVE-2026-24049. Both packages live only in the dev group, so this only rebuilds the test-requirements image; the production reqs/api/worker images are unaffected and remain at their no-upstream-fix residual set. Co-authored-by: Cursor <cursoragent@cursor.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1889 +/- ##
=======================================
Coverage 91.83% 91.83%
=======================================
Files 1332 1332
Lines 51830 51830
Branches 1647 1647
=======================================
Hits 47598 47598
Misses 3911 3911
Partials 321 321
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! 🚀 New features to boost your workflow:
|
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
Part of the Artifact Registry crit/high CVE remediation campaign for the
codecov/umbrellaimages (codecov/api,codecov/worker,codecov/umbrella-reqs).After the prior stacked pass (#1522/#1523/#1526/#1527), a fresh AR scan (2026-08-01) shows the production reqs/api/worker images are already down to the irreducible no-upstream-fix residual set (
perl,expat,acl,attr). The only remaining fixable crit/high live in the CI-only test-requirements image (the most-recently-uploaded tag oncodecov/umbrella-reqs):vcrpyGHSA-rpj2-4hq8-938g (HIGH, arbitrary code execution via unsafe YAML cassette load) — fixed in 8.2.1.wheelCVE-2026-24049 (HIGH) — the flaggedwheel-0.45.1is the seed wheel embedded insidevirtualenv(site-packages/virtualenv/seed/wheels/embed/), pulled in transitively viapre-commit.Both packages are in the dev group only, so this changes just the test-requirements image; the production reqs/api/worker images are untouched.
Changes
vcrpy==8.1.1→>=8.2.1. The old hard pin was there because vcrpy 8.2.0 changed httpx interception to the transport level and now captures a bare-host request path (https://hostwith no path) as""instead of"/"(upstream issue #1013, COV-45) — this regression is still present in 8.3.0, so the pin could not simply be lifted. The only affected cassette is the pipedream webhook interaction intest_simple_call_status_and_notifiers.yaml(the webhook notifier posts viahttpx.Client). Per the upstream maintainer's recommended workaround, the trailing slash was dropped from that one recordeduriso thepathmatcher matches the""that vcrpy 8.2+ now reports. Resolves to vcrpy 8.3.0.virtualenv>=20.31.0floor added (dev group). From 20.31.0 virtualenv no longer bundles thewheelseed wheel on Python ≥3.9, so the embeddedwheel-0.45.1disappears entirely. Resolves to virtualenv 21.7.1.uv.lockrecompiled: only dev-scoped packages move (vcrpy8.1.1→8.3.0,virtualenv20.30.0→21.7.1,filelock3.18.0→3.32.2,+python-discovery1.5.1). The--no-group devexport is byte-for-byte unchanged, confirming production images are unaffected.Expected AR result (validated by CI + re-scan, async)
codecov/apicodecov/workercodecov/umbrella-reqs(prodreqs-tag)codecov/umbrella-reqs(test-tag)New content-addressed tags this branch produces:
REQUIREMENTS_TAG=reqs-336a78eefa7da921d171c27077f1725471cc17bd-613b6fe42352709208ddf2976f0c09143aac63e4-57d98be0648c27f47a15df14b857fcdd62ebe2a7TEST_REQS_TAG=test-a61522cb369ad3771a10a8347dbda7aeb46566bcTest plan
TestNotifyTask::test_simple_call_status_and_notifiers) passes with vcrpy 8.3.0 against the edited cassette.test-a61522cb...in AR and confirmwheel+vcrpyfindings are gone (residual perl/expat/acl/attr/libssh2 remain).Made with Cursor