CVE-2022-25758
JavaScript vulnerability analysis and mitigation

Overview

CVE-2022-25758 affects all versions of the scss-tokenizer package prior to version 0.4.3. The vulnerability was discovered on January 13, 2022, and publicly disclosed on June 29, 2022. This security issue is identified as a Regular Expression Denial of Service (ReDoS) vulnerability that exists in the loadAnnotation() function due to the implementation of insecure regex patterns (Snyk Advisory, NVD).

Technical details

The vulnerability is classified as CWE-1333 (Inefficient Regular Expression Complexity) with a CVSS v3.1 base score ranging from 5.3 (Medium) to 7.5 (High). The issue stems from the usage of insecure regex patterns in the loadAnnotation() function, which can be exploited through crafted input strings. The vulnerability manifests when processing source map annotations, specifically in the pattern matching expression 'css.match(//*\s*# sourceMappingURL=(.)\s*/)' (GitHub Issue, Snyk Advisory).

Impact

When exploited, this vulnerability can lead to a Denial of Service condition by causing the application to consume excessive CPU resources. The impact is primarily on availability, with no direct effect on confidentiality or integrity. The attack can cause the service to become partially available or experience significant performance degradation (Snyk Advisory).

Mitigation and workarounds

The recommended mitigation is to upgrade scss-tokenizer to version 0.4.3 or higher, which contains the fix for this vulnerability (Snyk Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22610HIGH8.5
  • JavaScriptJavaScript
  • angular.js
NoYesJan 10, 2026
CVE-2026-22595HIGH8.1
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22594HIGH8.1
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22596MEDIUM6.7
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22597LOW2
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management