CVE-2022-25758: Regular Expression Denial of Service (ReDoS)

Published Jul 1, 2022
·
Updated

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.

Other sources

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.

Node.js scss-tokenizer module is vulnerable to a denial of service, caused by a regular expression denial of service (ReDoS) vulnerability in the loadAnnotation() function. A remote attacker could exploit this vulnerability to cause a denial of service.

— IBM

Affected Software

9 affected componentsFixes available
npm/scss-tokenizer<=0.4.2
0.4.3
Scss-tokenizer Project Scss-tokenizer Node.js
IBM Planning Analytics<=2.0
ubuntu/node-node-sass*
ubuntu/node-node-sass*
ubuntu/node-node-sass*
ubuntu/node-node-sass*
ubuntu/node-node-sass*
ubuntu/node-node-sass*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/scss-tokenizer to a version that resolves this vulnerability.

    Fixed in 0.4.3
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 0.4.3

Event History

Jul 1, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
CVE Published
via MITRE·08:01 PM
Data Sourced
via OSV·08:15 PM
DescriptionSeverityAffected Software
Data Sourced
08:15 PM
DescriptionSeverityWeaknessAffected Software
Jul 2, 2022
Advisory Published
12:00 AM
Nov 29, 2023
Advisory Published
10:18 PM
Dec 21, 2023
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software
Updated
via IBM·12:00 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2022-25758?

CVE-2022-25758 is classified as a Regular Expression Denial of Service (ReDoS) vulnerability.

2

How do I fix CVE-2022-25758?

To mitigate CVE-2022-25758, update the scss-tokenizer package to version 0.4.3 or later.

3

Which versions of scss-tokenizer are affected by CVE-2022-25758?

All versions of scss-tokenizer prior to version 0.4.3 are affected by CVE-2022-25758.

4

Which software applications are vulnerable to CVE-2022-25758?

Software using scss-tokenizer version 0.4.2 and below, as well as IBM Planning Analytics up to version 2.0, are vulnerable to CVE-2022-25758.

5

What is the nature of the vulnerability in CVE-2022-25758?

CVE-2022-25758 arises from the usage of insecure regular expressions in the loadAnnotation() function.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203