Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

renovate-bot
Copy link
Contributor

@renovate-bot renovate-bot commented Aug 15, 2024

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:

  • Requires users to opt-in
  • Suggests using a proxy to prevent requests to local addresses

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.


  • If you want to rebase/retry this PR, check this box

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

@forking-renovate forking-renovate bot added the lang: python Issues specific to Python. label Aug 15, 2024
@renovate-bot renovate-bot requested a review from a team as a code owner August 15, 2024 16:24
Copy link

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
Copy link
Collaborator

NimJay commented Aug 23, 2024

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

@renovate-bot renovate-bot changed the title chore(deps): update dependency langchain-community to v0.2.9 [security] chore(deps): update dependency langchain-community to v0.2.9 [security] - abandoned Aug 26, 2024
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang: python Issues specific to Python. type:security
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants