Vulnerability DatabaseGHSA-6chw-6frg-f759

GHSA-6chw-6frg-f759
JavaScript vulnerability analysis and mitigation

Overview

A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in Acorn, a JavaScript parser. The vulnerability affects versions >= 5.5.0 < 5.7.4, >= 6.0.0 < 6.4.1, and >= 7.0.0 < 7.1.1. The issue was disclosed on March 2, 2020, and published to the GitHub Advisory Database on April 3, 2020. The vulnerability received a high severity CVSS score of 7.5 (GitHub Advisory).

Technical details

The vulnerability occurs when a regex in the form of /[x-\ud800]/u is processed, causing the parser to enter an infinite loop. The string is not valid UTF16, which typically would be sanitized before reaching the parser. The issue was addressed by implementing more rigorous checks for surrogate pairs in the regexp validator (Acorn Commit). The vulnerability has been assigned CWE-400 and received a CVSS v3.1 base score of 7.5, with metrics indicating network attack vector, low attack complexity, no privileges required, and high impact on availability (Snyk Report).

Impact

When exploited, this vulnerability can lead to a total loss of availability, resulting in a Denial of Service condition. The attacker can cause the system to enter an infinite loop, making it unresponsive and denying access to legitimate users. This is particularly impactful when the application processes untrusted input and passes it directly to Acorn (GitHub Advisory, Snyk Report).

Mitigation and workarounds

The vulnerability has been patched in versions 5.7.4, 6.4.1, and 7.1.1. Users are advised to upgrade to these or later versions to mitigate the vulnerability. The fix involves more rigorous validation of surrogate pairs in the regexp validator (GitHub Advisory, Acorn Issue).

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-23947CRITICAL9.3
  • JavaScriptJavaScript
  • @orval/core
NoYesJan 20, 2026
CVE-2026-23950HIGH8.8
  • JavaScriptJavaScript
  • grafana-graphite
NoYesJan 20, 2026
CVE-2026-22037HIGH8.4
  • JavaScriptJavaScript
  • @fastify/express
NoYesJan 19, 2026
CVE-2026-23522LOW3.7
  • JavaScriptJavaScript
  • @lobehub/chat
NoNoJan 19, 2026
CVE-2025-66803LOW1.7
  • JavaScriptJavaScript
  • @hotwired/turbo
NoYesJan 20, 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