[Aikido] Fix 32 critical issues in streamlit, transformers, torch and 9 more#14
Closed
aikido-autofix[bot] wants to merge 1 commit intomainfrom
Closed
[Aikido] Fix 32 critical issues in streamlit, transformers, torch and 9 more#14aikido-autofix[bot] wants to merge 1 commit intomainfrom
aikido-autofix[bot] wants to merge 1 commit intomainfrom
Conversation
Author
|
Closed by Aikido: a new AutoFix has been created → #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 fontTools, high-severity DoS and decompression bomb vulnerabilities in urllib3, and protobuf recursion bypass. This update includes breaking changes that require manual migration.
Breaking Change: Python 3.9 Support Dropped (v1.51.0)
Where your code is affected:
pyproject.tomlline 8Impact: The project currently requires
python = ">=3.10,<3.15", which already excludes Python 3.9, so this breaking change does not affect the codebase.Remediation: No action needed - project already requires Python 3.10+.
Breaking Change: Default
use_container_width=Trueforst.dataframe(v1.43.0)Where your code is affected:
demo/app.pylines 565-567 and 573Impact: Two
st.dataframe()calls do not explicitly setuse_container_width, so they will now default toTrueinstead ofFalse, causing the dataframes to expand to fill the container width instead of using their natural width.Remediation: If the current width behavior is desired, explicitly set
use_container_width=Falsein bothst.dataframe()calls.requests (2.32.3 => 2.33.0)
Breaking Change: Python 3.9 Support Dropped
Where your code is affected:
pyproject.tomlline 8,src/lex_graph/graph.pyline 4Impact: The project already requires Python 3.10+, so this breaking change does not affect the codebase.
Remediation: No action needed - project already requires Python 3.10+.
torch (2.6.0 => 2.8.0)
Breaking Change:
torch.dtypeparameter usageWhere your code is affected:
src/lex_graph/reference_finders/local_llm.pyline 13Impact: The
torch_dtypeparameter is used withtorch.float16as default value and passed toAutoModelForCausalLM.from_pretrained(). While the parameter itself is not directly affected by breaking changes, the underlying behavior may change.Remediation: Verify that the model loading with
torch_dtype=torch.float16still works correctly after the upgrade, particularly with the new manylinux_2_28 and CXX11_ABI=1 changes.All breaking changes by upgrading requests from version 2.32.3 to 2.33.1 (CHANGELOG)
All breaking changes by upgrading urllib3 from version 2.3.0 to 2.6.3 (CHANGELOG)
Content-Encodingheader is now limited to 5, which may cause previously working requests with more than 5 chained encodings to fail.urllib3.response.ContentDecoderhas changed, requiring updates to custom decompressors.HTTPResponse.getheaders()method in favor ofHTTPResponse.headers.HTTPResponse.getheader(name, default)method in favor ofHTTPResponse.headers.get(name, default).All breaking changes by upgrading pygments from version 2.19.1 to 2.20.0 (CHANGELOG)
✅ 32 CVEs resolved by this upgrade, including 1 critical 🚨 CVE
This PR will resolve the following CVEs:
preprocess_string()function in the testing utilities module contains a Regular Expression Denial of Service (ReDoS) vulnerability with nested quantifiers that causes exponential backtracking. An attacker can exploit this with specially crafted input to trigger high CPU usage and application downtime.remove_language_code()method allows attackers to cause excessive CPU consumption through crafted malformed language code patterns, resulting in denial of service.get_imports()function allows attackers to cause excessive CPU consumption through crafted input, leading to resource exhaustion and service disruption.token2json()method allows attackers to cause excessive CPU consumption through crafted input strings, leading to denial of service and resource exhaustion.normalize_numbers()method allows attackers to cause excessive CPU consumption through crafted numeric input strings, leading to service disruption and resource exhaustion in text-to-speech and normalization tasks.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.domain,path, andsamesitecookie arguments allows semicolons, enabling attackers to inject arbitrary cookie attributes. This could lead to session hijacking or other cookie-based attacks.strings.findfunction due to incorrect memory allocation calculations, leading to out-of-bounds access. This can cause application crashes or potentially enable arbitrary code execution.