[Aikido] Fix 16 security issues in langchain, langchain-openai, langchain-chroma and 9 more#6
Closed
aikido-autofix[bot] wants to merge 1 commit intomainfrom
Closed
Conversation
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 template injection, serialization injection, XXE, and DoS vulnerabilities in LangChain and protobuf.
✅ Code not affected by breaking changes.
No breaking changes from the package upgrades affect this codebase.
Analysis summary:
langchain-text-splitters: The codebase does not use
HTMLSectionSplitteror thexslt_pathparameter. Whilechunk_sizeandoverlapare used incrit/compare.py, they are custom parameters for a tiktoken-based chunking function, not langchain-text-splitters API parameters.urllib3: The codebase does not directly import or use urllib3,
HTTPResponse,getheaders(), orgetheader()methods.filelock: The project requires Python >=3.12, which is well above the new minimum of Python 3.10 (dropping 3.9 support has no impact).
onnxruntime: While onnxruntime is a transitive dependency (via langchain-chroma), the codebase does not directly use it, does not use GPU features, and does not target Windows-specific functionality.
asgiref: This package is not present in the project's dependencies.
✅ 16 CVEs resolved by this upgrade
This PR will resolve the following CVEs:
ArrayFeatureExtractoroperator lacks validation for negative index values, allowing only upper bound checks. An attacker can exploit this out-of-bounds read vulnerability to access unintended heap memory and leak sensitive data during model inference.