CVE-2022-25758
HIGH 7.5CVSS 3.1Regular expression denial of service in scss-tokenizer
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.
- Published
- 1 Jul 2022
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-1333
- Also known as
- GHSA-7mwh-4pqv-wmr8
- Sources
- NVDJSONOSV GHSA-7mwh-4pqv-wmr8JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | scss-tokenizer_project | scss-tokenizercpe:2.3:a:scss-tokenizer_project:scss-tokenizer:*:*:*:*:*:node.js:*:* |
all versions | |
| OSV | npm | scss-tokenizer | < 0.4.3 | 0.4.3 |
References
- https://github.com/sasstools/scss-tokenizer/issues/45 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2936782 · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-SCSSTOKENIZER-2339884 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-25758 · ADVISORY
- https://github.com/sasstools/scss-tokenizer/pull/49 · WEB
- https://github.com/sasstools/scss-tokenizer/commit/a53b6f233e648cc01acbdd89c58786cf8ba56e35 · WEB
- https://github.com/sasstools/scss-tokenizer · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 1 Jul 2022)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 2 Jul 2022)