Hi Team. We use `rudder-sdk-js` and we got a depa...
# support
h
Hi Team. We use
rudder-sdk-js
and we got a depandabot alert as follows.
Copy code
Regular Expression Denial of Service in debug


The latest possible version that can be installed is 0.7.4 because of the following conflicting dependencies:

rudder-sdk-js@2.48.2 requires debug@^4.3.3 via a transitive dependency on @mswjs/interceptors@0.17.10
rudder-sdk-js@2.48.2 requires debug@^0.7.4 via @segment/localstorage-retry@1.3.0
react-markdown@8.0.7 requires debug@^4.0.0 via a transitive dependency on micromark@3.2.0
No patched version available for debug
The earliest fixed version is 2.6.9.
Copy code
Affected versions of debug are vulnerable to regular expression denial of service when untrusted user input is passed into the o formatter.

As it takes 50,000 characters to block the event loop for 2 seconds, this issue is a low severity issue.

This was later re-introduced in version v3.2.0, and then repatched in versions 3.2.7 and 4.3.1.

Recommendation
Version 2.x.x: Update to version 2.6.9 or later.
Version 3.1.x: Update to version 3.1.0 or later.
Version 3.2.x: Update to version 3.2.7 or later.
Version 4.x.x: Update to version 4.3.1 or later.
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
Hi Aram Bhusal, can you please use the JS SDK version 3.0 or higher. It is the latest version and though it says it is in Beta, the SDK is very stable.
h
Thanks @shy-kite-21035