soupsieve is vulnerable to Regular Expression Denial of Service (ReDoS)
53
Medium Risk
The soupsieve CSS selector parser trims trailing whitespace and comments with the RE_WS_END regex. That pattern has no start anchor and is applied with search(), so the engine retries at every offset. A selector with a long run of whitespace or repeated comments before a token then takes quadratic time, so a roughly 20 KB selector consumes about ten seconds of CPU. The fix rewrites trailing trimming as a start anchored match over the reversed string so trimming stays linear.
You are affected if you are using a version that falls within the vulnerable range and your application compiles user controlled CSS selectors.
soupsieve is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 1.0.0 - 2.8.4.
Upgrade the soupsieve 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.

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.