cves: replace pip's vendored msgpack 1.1.2 with >=1.2.1 to fix GHSA-6v7p-g79w-8964 - #250
Merged
kezhenxu94 merged 1 commit intoSep 7, 2026
Conversation
…v7p-g79w-8964 pip 26.x ships msgpack 1.1.2 in its internal _vendor directory (used for pip's own cache operations). A regular `pip install msgpack>=1.2.1` installs a newer user-facing copy but does not touch pip's vendor directory, so trivy still detects the old 1.1.2 in the base image layer. This fix installs msgpack>=1.2.1 to a temporary location, copies the Python source files into pip's _vendor/msgpack/, clears the stale bytecode cache, and updates pip's CycloneDX SBOM (bom.cdx.json) to reflect the patched version. Fixes: GHSA-6v7p-g79w-8964 (msgpack < 1.2.1 deserialization vulnerability) Related to tetrateio/tetrate#34613
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
pip 26.x ships msgpack 1.1.2 in its internal
_vendordirectory (used for pip's own cache operations). A regularpip install msgpack>=1.2.1installs a newer user-facing copy but does not touch pip's vendor directory, so vulnerability scanners (trivy, JFrog Xray) still detect the old 1.1.2 in the base image layer.This PR adds a Dockerfile step that:
msgpack>=1.2.1to a temporary location_vendor/msgpack/bom.cdx.json) to reflect the patched versionCVEs Fixed
Verification
Build and scan:
cc @kezhenxu94