lightweight-charts is vulnerable to Regular Expression Denial of Service (ReDoS)
50
CVSS Score
Medium
Regular Expression Denial of Service (ReDoS)
Affected versions of the lightweight-charts package are vulnerable to Regular Expression Denial of Service (ReDoS). The color regex const rgbaRe = /^rgba\(\s*(-?\d{1,10})\s*,\s*(-?\d{1,10})\s*,\s*(-?\d{1,10})\s*,\s*(-?[\d]{0,10}(?:\.\d+)?)\s*\)$/ contains a possible weakness. This vulnerability can be exploited with inputs like 'rgba(0,0,0,' + '\t'.repeat(54773) + '\x00', leading to excessive CPU usage and Denial of Service.
Upgrade the lightweight-charts library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
1.0.0 - 4.1.3
Fixed in 4.1.4lightweight-charts is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 1.0.0 - 4.1.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.