GoogleCloudPlatform / kubernetes-engine-samples

Sample applications for Google Kubernetes Engine (GKE)
https://cloud.google.com/kubernetes-engine/docs/tutorials/
Apache License 2.0
1.22k stars 1.21k forks source link

chore(deps): update dependency langchain-community to v0.2.9 [security] - abandoned #1411

Closed renovate-bot closed 3 weeks ago

renovate-bot commented 1 month ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
langchain-community (changelog) ==0.0.38 -> ==0.2.9 age adoption passing confidence

[!WARNING] Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

GitHub Vulnerability Alerts

CVE-2024-2965

Denial of service in SitemapLoader Document Loader in the langchain-community package, affecting versions below 0.2.5. The parse_sitemap method, responsible for parsing sitemaps and extracting URLs, lacks a mechanism to prevent infinite recursion when a sitemap URL refers to the current sitemap itself. This oversight allows for the possibility of an infinite loop, leading to a crash by exceeding the maximum recursion depth in Python. This vulnerability can be exploited to occupy server socket/port resources and crash the Python process, impacting the availability of services relying on this functionality.

CVE-2024-3095

A Server-Side Request Forgery (SSRF) vulnerability exists in the Web Research Retriever component in langchain-community (langchain-community.retrievers.web_research.WebResearchRetriever). The vulnerability arises because the Web Research Retriever does not restrict requests to remote internet addresses, allowing it to reach local addresses. This flaw enables attackers to execute port scans, access local services, and in some scenarios, read instance metadata from cloud environments. The vulnerability is particularly concerning as it can be exploited to abuse the Web Explorer server as a proxy for web attacks on third parties and interact with servers in the local network, including reading their response data. This could potentially lead to arbitrary code execution, depending on the nature of the local services. The vulnerability is limited to GET requests, as POST requests are not possible, but the impact on confidentiality, integrity, and availability is significant due to the potential for stolen credentials and state-changing interactions with internal APIs.

The patched code:


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled because a matching PR was automerged previously.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR was generated by Mend Renovate. View the repository job log.

forking-renovate[bot] commented 1 month ago

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

NimJay commented 3 weeks ago

Error from databases-weaviate-ci.yml GitHub Action check:

#10 6.106 ERROR: Cannot install -r requirements.txt (line 3) and langchain-community==0.2.9 because these package versions have conflicting dependencies.
#10 6.106 
#10 6.106 The conflict is caused by:
#10 6.106     The user requested langchain-community==0.2.9
#10 6.106     langchain 0.1.20 depends on langchain-community<0.1 and >=0.0.38
#10 6.106 
#10 6.106 To fix this you could try to:
#10 6.106 1. loosen the range of package versions you've specified
#10 6.106 2. remove package versions to allow pip to attempt to solve the dependency conflict
#10 6.106 
#10 6.253 ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
forking-renovate[bot] commented 3 weeks ago

Autoclosing Skipped

This PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error.