sasstools/scss-tokenizer · Security
Regular expression denial of service in scss-tokenizer
- GHSA ID
- GHSA-7mwh-4pqv-wmr8
- CVE ID
- CVE-2022-25758
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CVSS v3
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
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.
CWEs
- CWE-1333 · Inefficient Regular Expression Complexity
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-25758 ↗
- https://github.com/sasstools/scss-tokenizer/issues/45 ↗
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2936782 ↗
- https://snyk.io/vuln/SNYK-JS-SCSSTOKENIZER-2339884 ↗
- https://github.com/sasstools/scss-tokenizer/pull/49 ↗
- https://github.com/sasstools/scss-tokenizer/commit/a53b6f233e648cc01acbdd89c58786cf8ba56e35 ↗
- https://github.com/advisories/GHSA-7mwh-4pqv-wmr8 ↗