Skip to content

fix(deps): resolve CVEs across pip and npm dependencies with langchain 1.x migration#237

Merged
vipul-chauhan-intugle merged 1 commit intomainfrom
fix/security-vulnerabilities
Mar 30, 2026
Merged

fix(deps): resolve CVEs across pip and npm dependencies with langchain 1.x migration#237
vipul-chauhan-intugle merged 1 commit intomainfrom
fix/security-vulnerabilities

Conversation

@raphael-intugle
Copy link
Copy Markdown
Collaborator

Summary

Resolves a batch of security vulnerabilities across Python (pip) and JavaScript (npm) dependencies, and performs the code migration required by the langchain 1.x breaking changes.


Key Changes

🐍 Python / pip (pyproject.toml + uv.lock)

  • Minimum version constraints tightened for all vulnerable direct and transitive dependencies to address reported CVEs.

  • [tool.uv] override-dependencies added to force requests>=2.33.0 past the conflicting pysonar dev-group pin.

  • streamlit unpinned from the exact ==1.50.0 to >=1.51.0 to allow patched releases.

  • uv.lock regenerated — notable version bumps:

    Package Before After
    langchain-core 0.3.80 1.2.23
    langsmith 0.4.49 0.7.22
    tornado 6.5.2 6.5.5
    pyopenssl 25.3.0 26.0.0
    streamlit 1.50.0 1.55.0
    requests 2.32.5 2.33.0

📦 npm (docsite/package.json + package-lock.json)

  • npm overrides added in package.json for:
    • node-forge: "^1.4.0" (1.3.2 → 1.4.0)
    • serialize-javascript: "^7.0.5" (7.0.4 → 7.0.5)
    • brace-expansion, path-to-regexp, picomatch
  • package-lock.json regenerated — zero npm audit vulnerabilities remaining.

🔧 Source Code — langchain 1.x Migration

langchain.output_parsers and langchain.schema were removed in langchain 1.x. Imports updated to langchain_classic across 6 files:

  • src/intugle/core/llms/chat.py
  • src/intugle/core/conceptual_search/agent/tools/web_tools.py
  • src/intugle/core/pipeline/business_glossary/utils.py
  • src/intugle/core/pipeline/business_glossary/prompts.py
  • src/intugle/core/pipeline/datatype_identification/l2_model.py
  • src/intugle/core/pipeline/link_prediction/agent.py

📄 Streamlit App Requirements

  • src/intugle/streamlit_app/requirements.txt: streamlit==1.50.0streamlit>=1.51.0

Testing

  • uv lock and uv sync completed cleanly with no resolver conflicts after the override was applied.
  • npm install in docsite/ produces zero audit warnings.
  • All 6 migrated source files verified to import correctly under langchain 1.x.

…n 1.x migration

- pyproject.toml: tighten minimum version constraints for all vulnerable direct/transitive
  pip deps; add [tool.uv] override-dependencies to force requests>=2.33.0 past pysonar
  pin; relax streamlit from ==1.50.0 to >=1.51.0
- uv.lock: regenerated — notable bumps: langchain-core 0.3.80→1.2.23,
  langsmith 0.4.49→0.7.22, tornado 6.5.2→6.5.5, pyopenssl 25.3.0→26.0.0,
  streamlit 1.50.0→1.55.0, requests 2.32.5→2.33.0
- streamlit_app/requirements.txt: relax streamlit pin to >=1.51.0
- docsite/package.json: add npm overrides for node-forge ^1.4.0,
  serialize-javascript ^7.0.5, brace-expansion, path-to-regexp, picomatch
- docsite/package-lock.json: regenerated — node-forge 1.3.2→1.4.0,
  serialize-javascript 7.0.4→7.0.5; zero npm vulnerabilities remaining
- migrate 6 source files from removed langchain.output_parsers/langchain.schema
  to langchain_classic (langchain 1.x breaking change)
@vipul-chauhan-intugle vipul-chauhan-intugle merged commit 5fbd520 into main Mar 30, 2026
5 checks passed
@vipul-chauhan-intugle vipul-chauhan-intugle deleted the fix/security-vulnerabilities branch March 30, 2026 06:34
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