CVE-2022-25758 Regular Expression Denial of Service (ReDoS)
Attackers can cause denial of service in applications using scss-tokenizer by exploiting insecure regular expressions in the loadAnnotation function.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-25758?
CVE-2022-25758 is a medium-severity denial of service vulnerability in scss-tokenizer, published on 1 Jul 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
All versions of package scss-tokenizer are vulnerable to Regular Expression Denial of Service (ReDoS) via the loadAnnotation() function, due to the usage of insecure regex.
Weakness: CWE-1333
Which versions are affected by CVE-2022-25758?
2 open source packages ship an affected version, including scss-tokenizer. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
scss-tokenizer npm | All versions | 0.4.3 |
scss-tokenizer npm | All versions | 0.4.3 |
Products include Scss-Tokenizer Project Scss-Tokenizer.
How do I fix CVE-2022-25758?
Upgrade scss-tokenizer to 0.4.3 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2022-25758 being exploited?
There is no known exploitation of CVE-2022-25758 in the wild and no public exploit code.
Sources
Also known as CLSA-2026-1776991068, CLSA-2026-1788167387, GHSA-7mwh-4pqv-wmr8, UBUNTU-CVE-2022-25758.