@ninetailed/experience.js-shared is vulnerable to Regular Expression Denial of Service (ReDoS)
53
CVE Score
Medium
Regular Expression Denial of Service (ReDoS)
The shared SDK exposes a template helper that interpolates {{ ... }} placeholders using a regular expression whose capture group relies on a lazy, unbounded quantifier. When the interpolated string contains many unterminated {{ sequences, the pattern forces the engine into polynomial backtracking that stalls the single-threaded event loop and can hang processing. Before the fix the interpolation regex was also caller-configurable, so plugins supplied their own equally unsafe patterns to the same helper. The fix hard-codes a linear-time pattern that excludes braces inside the capture group and removes the configurable regex parameter.
Upgrade the @ninetailed/experience.js-shared library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and untrusted input is interpolated through the shared template utility.
4.2.0 - 7.24.3
Fixed in 7.25.0@ninetailed/experience.js-shared is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 4.2.0 - 7.24.3.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.