[Aikido] Fix 7 security issues in transformers, urllib3, pyarrow and 3 more - #143
Closed
aikido-autofix[bot] wants to merge 1 commit into
Closed
[Aikido] Fix 7 security issues in transformers, urllib3, pyarrow and 3 more#143aikido-autofix[bot] wants to merge 1 commit into
aikido-autofix[bot] wants to merge 1 commit into
Conversation
Contributor
Author
|
Closed by Aikido: a new AutoFix has been created → #144 |
aikido-autofix
Bot
deleted the
fix/aikido-security-update-packages-60149699-3vrd
branch
July 9, 2026 01:15
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.
Upgrade dependencies to fix critical RCE in transformers, DoS vulnerabilities in urllib3, use-after-free in pyarrow, and insecure temp file handling in requests.
✅ 7 CVEs resolved by this upgrade
This PR will resolve the following CVEs:
config.jsonfile can execute arbitrary Python code when loading a model viaAutoModelForCausalLM.from_pretrained(), bypassing thetrust_remote_codesecurity mechanism. This remote code execution vulnerability exploits unfiltered deserialization of configuration attributes during standard model loading.extract_zipped_paths()utility function uses predictable filenames when extracting zip archives to the temp directory, allowing local attackers to pre-create malicious files that get loaded instead of legitimate ones, resulting in arbitrary code execution.🤖 Remediation details
Fix security vulnerabilities in transformers, urllib3, pyarrow, requests, pygments, and idna
Short summary
This PR remediates security vulnerabilities in six packages: transformers, urllib3, pyarrow, requests, pygments, and idna. One direct dependency spec was tightened in the root
pyproject.toml(pyarrow), and the remaining five packages were resolved to patched versions via lockfile-only upgrades. All resolved versions are reflected inuv.lock.transformers
transformersis a transitive dependency introduced bysentence-transformers, which is declared as a direct dev dependency under[project.optional-dependencies] dev. No manifest edit was required; runninguv lock --upgrade-package transformers(alongsidesentence-transformers) was sufficient to advance the resolved version from 5.1.0 to 5.13.0, satisfying the ≥5.3.0 patched floor.urllib3
urllib3is a transitive dependency reached through multiple chains (viabotocorefromboto3, and viarequestsfromlangfuseandtiktoken). All parent packages already declared ranges permitting 2.7.0, so a lockfile-only upgrade withuv lock --upgrade-package urllib3was sufficient to advance the resolved version from 2.6.3 to 2.7.0.pyarrow
pyarrowis a direct dependency inpyproject.tomlwith the spec>=15.0.0. Because the existing lower bound permitted versions below the patched floor of 23.0.1, the spec was updated to>=23.0.1to enforce the minimum safe version. The resolver then selected 24.0.0 inuv.lock.requests
requestsis a transitive dependency pulled in bylangfuse,tiktoken, andopentelemetry-exporter-otlp-proto-http. All parent packages already allowedrequests>=2.33.0, so a lockfile-only upgrade withuv lock --upgrade-package requestsadvanced the resolved version from 2.32.5 to 2.34.2 without any manifest change.pygments
pygmentsis a transitive dependency introduced byrich, which is a direct dependency.richalready declaredpygments>=2.13.0,<3.0.0, which permits 2.20.0, so a lockfile-only upgrade withuv lock --upgrade-package pygmentswas sufficient to advance the resolved version from 2.19.2 to 2.20.0.idna
idnais a transitive dependency reached through several chains (viaanyioandhttpxfromlangfuseandopenai, and viarequestsfromlangfuseandtiktoken). All parent packages already permittedidna>=3.15, so a lockfile-only upgrade withuv lock --upgrade-package idnaadvanced the resolved version from 3.11 to 3.18.Version changes
>=15.0.0→ 22.0.0 resolved>=23.0.1→ 24.0.0 resolved