[Aikido] Fix 7 security issues in urllib3, requests, pygments#17
Closed
aikido-autofix[bot] wants to merge 1 commit into
Closed
[Aikido] Fix 7 security issues in urllib3, requests, pygments#17aikido-autofix[bot] wants to merge 1 commit into
aikido-autofix[bot] wants to merge 1 commit into
Conversation
Author
|
Closed by Aikido: a new AutoFix has been created → #18 |
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 urllib3, requests, and pygments to fix decompression bomb DoS vulnerabilities, redirect bypass SSRF issues, and other critical security flaws.
✅ Code not affected by breaking changes.
No breaking changes from these package upgrades affect this codebase:
Python version compatibility: The project requires Python >=3.12, which is well above the minimum requirements of urllib3 (>=3.9), requests (>=3.10), and pygments (>=3.9). The dropped support for Python 3.8 and 3.9 does not affect this project.
urllib3 deprecated methods: The codebase does not directly use urllib3 or any of the removed methods (
HTTPResponse.getheaders(),HTTPResponse.getheader(), or customContentDecoderimplementations).Indirect usage: While these packages are transitive dependencies (requests depends on urllib3, and other dev tools may use pygments), the codebase does not directly interact with them, so the API changes do not impact the code.
All breaking changes by upgrading urllib3 from version 2.2.3 to 2.6.3 (CHANGELOG)
HTTPResponse.getheaders()method in favor ofHTTPResponse.headers. Removed theHTTPResponse.getheader(name, default)method in favor ofHTTPResponse.headers.get(name, default).urllib3.response.ContentDecoder.All breaking changes by upgrading requests from version 2.32.3 to 2.33.0 (CHANGELOG)
All breaking changes by upgrading pygments from version 2.18.0 to 2.20.0 (CHANGELOG)
✅ 7 CVEs resolved by this upgrade
This PR will resolve the following CVEs:
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.