lightweight-charts is vulnerable to Regular Expression Denial of Service (ReDoS)
50
Medium Risk
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.
You are affected if you are using a version that falls within the vulnerable range.
lightweight-charts is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 1.0.0 - 4.1.3.
Upgrade the lightweight-charts library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant