GitHub Advisoryadvisory · npm
GHSA-7mwh-4pqv-wmr8 Regular expression denial of service in scss-tokenizer
HIGH
Official page ↗
- Aliases
- CVE-2022-25758
- Ecosystem
- npm
- Packages
- scss-tokenizer
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-1333
- Reviewed
- 2022-07-06
Affected packages
• npm scss-tokenizer: < 0.4.3 → fixed in 0.4.3
Description
All versions of the package `scss-tokenizer` prior to 0.4.3 are vulnerable to Regular Expression Denial of Service (ReDoS) via the `loadAnnotation()` function, due to the usage of insecure regex.
Related
Alias · CVE (1)
- CVE-2022-25758 All versions of package scss-tokenizer are vulnerable to Regular Expression Denial of Service (ReDoS) via the loadAnnotation() function,… vulnerability
Weakness · CWE (1)
- CWE-1333 Inefficient Regular Expression Complexity weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-25758 advisory
- https://github.com/sasstools/scss-tokenizer/issues/45 web
- 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
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2936782 web
- https://snyk.io/vuln/SNYK-JS-SCSSTOKENIZER-2339884 web