LucasBassetti / react-simple-chatbot

:speech_balloon: Easy way to create conversation chats
https://lucasbassetti.com.br/react-simple-chatbot/
MIT License
1.74k stars 602 forks source link

Security: Vulnerable dependency 'braces' needs update to resolve CVE-2024-4068 #387

Open sebastianlaraai opened 2 weeks ago

sebastianlaraai commented 2 weeks ago

the bug
The current version of react-simple-chatbot (0.6.1) includes a security vulnerability through transitive dependencies that use an older version of 'braces' (< 3.0.3), identified as CVE-2024-4068. This vulnerability allows potential DoS attacks through uncontrolled resource consumption.

To Reproduce
Steps to reproduce the behavior:

  1. Install react-simple-chatbot@0.6.1
  2. Run npm audit or check GitHub's Dependabot alerts
  3. Observe the vulnerability warning for 'braces' through:
    • chokidar@2.1.8 (requires braces@^2.3.2)
    • micromatch@3.1.10 (requires braces@^2.3.1)

Expected behavior
Dependencies should use braces >= 3.0.3 to prevent the vulnerability (CVE-2024-4068).

Additional context