Skip to content

[Bug]: Multiple Critical/High Security Vulnerabilities in Dependencies #47

@sami-marreed

Description

@sami-marreed

Bug Description

Multiple critical and high severity security vulnerabilities have been detected across Python and npm dependencies in the main project and example projects.

Python vulnerabilities:

  • NLTK – Zip Slip Vulnerability (Critical)uv.lock
  • LangChain serialization injection (Critical) – enables secret extraction via dumps/loads APIs – detected in docs/examples/cuga_with_runtime_tools/uv.lock and docs/examples/cuga_as_mcp/uv.lock
  • Pillow – out-of-bounds write loading PSD images (High)uv.lock, docs/examples/cuga_with_runtime_tools/uv.lock, docs/examples/cuga_as_mcp/uv.lock
  • urllib3 – decompression bomb when following HTTP redirects (High) – detected in docs/examples/demo_apps/file_system/uv.lock, docs/examples/demo_apps/email_mcp/mcp_server/uv.lock, docs/examples/demo_apps/crm/uv.lock, docs/examples/cuga_with_runtime_tools/uv.lock, docs/examples/cuga_as_mcp/uv.lock
  • urllib3 – unbounded decompression chain links (High) – same set of lock files
  • urllib3 – streaming API improperly handles highly compressed data (High) – same set of lock files

npm vulnerabilities (in src/frontend_workspaces/pnpm-lock.yaml):

  • Rollup 4 – Arbitrary File Write via Path Traversal (High)
  • basic-ftp – Path Traversal in downloadToDir() (Critical)
  • minimatch – ReDoS via repeated wildcards (High) – multiple instances

Steps to Reproduce

  1. Check GitHub Dependabot alerts
  2. Upgrade affected Python dependencies via uv and npm dependencies via pnpm
  3. Reinstall npm dependencies:
    cd src/frontend_workspaces
    pnpm install
    
  4. Rebuild the frontend UI:
    cd src/frontend_workspaces/frontend
    sh build.sh
    
  5. Rerun the agent to verify no regressions:
    • cuga start demo
    • cuga start demo_crm
    • cuga start manager
  6. Verify all modes start and operate correctly

Expected Behavior

All dependencies should be updated to versions that patch the listed vulnerabilities. The application should continue to function correctly after upgrades — cuga start demo, cuga start demo_crm, and cuga start manager should all start and run without regressions. The frontend UI (rebuilt via sh build.sh in src/frontend_workspaces/frontend/) should also function correctly.

Actual Behavior

Dependabot has flagged critical and high severity vulnerabilities in both Python (uv.lock) and npm (pnpm-lock.yaml) lock files across the main project and multiple example projects under docs/examples/.

Environment

  • Detected automatically by GitHub Dependabot
  • Package managers: uv (Python), pnpm (Node/npm)
  • Affects: uv.lock, pnpm-lock.yaml, and multiple example project lock files under docs/examples/

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions