Skip to content

Fix high and moderate severity security vulnerabilities in dependencies - #90

Merged
recabasic merged 2 commits into
mainfrom
copilot/update-security-dependencies
Nov 10, 2025
Merged

recabasic merged 2 commits into
mainfrom
copilot/update-security-dependencies

Conversation

Copilot AI commented Nov 10, 2025 •

Copy link
Copy Markdown
Contributor

📋 Description

Resolved CVE-2025-12735 (expr-eval RCE) and GHSA-93m4-6634-74q7 (vite path traversal).

Backend: expr-eval vulnerability allows arbitrary code execution via crafted variables object. Since @langchain/community transitively depends on vulnerable expr-eval with no patched version available, used npm overrides to substitute expr-eval-fork@3.0.0 which includes the security fix.

Frontend: vite 7.1.5 allows server.fs.deny bypass via backslash on Windows. Updated to 7.2.2.

// package.json
{
  "overrides": {
    "expr-eval": "npm:expr-eval-fork@^3.0.0"
  }
}

🔄 Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📚 Documentation update
  • 🎨 Style/UI changes
  • ♻️ Code refactoring
  • ⚡ Performance improvements
  • 🧪 Test updates
  • 🔧 Build/CI changes

🧪 Testing

  • I have tested this change locally
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Verified:

  • npm audit: 0 vulnerabilities
  • pnpm audit: 0 vulnerabilities
  • Backend build passes
  • Frontend build passes

📱 Screenshots (if applicable)

N/A

🔍 Code Review Checklist

  • Code follows the project's coding standards
  • Self-review of the code has been performed
  • Code is properly commented, particularly in hard-to-understand areas
  • Changes generate no new warnings
  • Any dependent changes have been merged and published

📚 Related Issues

Fixes automated security audit issue for 2025-11-10

🚀 Deployment Notes

Requires npm install --legacy-peer-deps due to existing peer dependency conflicts in @langchain/community.

📋 Additional Context

expr-eval-fork maintains API compatibility with expr-eval while adding security fixes. No code changes required, only dependency resolution override.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/langchain-ai/langchainjs/issues
    • Triggering command: curl -s REDACTED (http block)
  • https://api.github.com/search/issues
    • Triggering command: curl -s REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>🚨 Security vulnerabilities detected - 2025-11-10</issue_title>
<issue_description>
Automated security scan detected vulnerabilities that need attention.

Please review the security audit results and update dependencies accordingly.

Actions to take:

  1. Run npm audit in the root directory for backend issues
  2. Run pnpm audit in the frontend directory for frontend issues
  3. Update vulnerable packages using npm audit fix or pnpm update
  4. Test the application after updates

This issue was automatically created by the security audit workflow.
</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: recabasic <102372274+recabasic@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix security vulnerabilities in project dependencies Fix high and moderate severity security vulnerabilities in dependencies Nov 10, 2025
Copilot AI requested a review from recabasic November 10, 2025 14:03

@recabasic recabasic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@recabasic
recabasic marked this pull request as ready for review November 10, 2025 14:40
@recabasic
recabasic merged commit 6ad1233 into main Nov 10, 2025
5 checks passed
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.

🚨 Security vulnerabilities detected - 2025-11-10

2 participants