Skip to content

Conversation

@justjais
Copy link
Contributor

@justjais justjais commented Oct 13, 2025

Jira Issue: https://issues.redhat.com/browse/AAP-55293; https://issues.redhat.com/browse/AAP-55295;

Description

To address and fix CVE-2025-6985 for XXE Vulnerability in langchain-text-splitters, and its dependency over langchain-core, resulted in its upgrade as well.

Testing

Steps to test

NA

Scenarios tested

NA

Production deployment

  • This code change is ready for production on its own
  • This code change requires the following considerations before going to production:

Note

Upgrades langchain-text-splitters to 0.3.11 (and langchain-core to 0.3.79) across requirements and adds a pip-audit ignore for a social-auth-app-django advisory.

  • Dependencies:
    • Add langchain-text-splitters~=0.3.11 to pyproject.toml.
    • Pin langchain-text-splitters==0.3.11 in requirements.in (notes CVE-2025-6985).
    • Regenerate platform locks: bump langchain-core to 0.3.79 and langchain-text-splitters to 0.3.11 in requirements-aarch64.txt and requirements-x86_64.txt.
  • CI:
    • Update .github/workflows/pip_audit.yml to ignore GHSA-wv4w-6qv2-qqfg (social-auth-app-django; pending Django 5+).

Written by Cursor Bugbot for commit 423887c. This will update automatically on new commits. Configure here.

# pip 25.3 is not released yet
# See: https://github.com/advisories/GHSA-4xh5-x5gv-qwph
GHSA-4xh5-x5gv-qwph
# To remove once we upgrade to Django 5+ (requires major version upgrade)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added to avoid upgrading the social-auth-app-django version as it requires Django version upgrade to 5+ which isn't the scope for respective jiras

@justjais justjais requested a review from hasys October 14, 2025 06:01
@sonarqubecloud
Copy link

langchain==0.3.26
# via -r requirements.in
langchain-core==0.3.69
langchain-core==0.3.79
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed to update langchain-core, as langchain-text-splitters==0.3.11 has dependency over langchain-core version as:>=0.3.75.

Copy link
Contributor

@hasys hasys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thank you @justjais

@justjais justjais merged commit 2527c52 into main Oct 14, 2025
12 checks passed
@justjais justjais deleted the XXE-Vulnerability branch October 14, 2025 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants