
Cloud Vulnerability DB
A community-led vulnerabilities database
A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in papaparse versions prior to 5.2.0. The vulnerability was identified on April 2, 2020, and was assigned the identifier GHSA-qvjc-g5vr-mfgr. The issue affects the parse function of the papaparse package, which is a fast in-browser CSV parser for JavaScript (GitHub Advisory).
The vulnerability stems from a malformed regular expression used to detect numbers within the package. The problematic pattern was identified in the expression var FLOAT = /^\s*-?(\d*\.?\d+|\d+\.?\d*)(e[-+]?\d+)?\s*$/i. This regex pattern takes exponentially longer to process non-numerical inputs, leading to catastrophic backtracking. The vulnerability received a CVSS score of 7.5 (High), with attack vector being Network, attack complexity Low, and no privileges or user interaction required (Snyk, GitHub Issue).
When exploited, this vulnerability can cause a significant performance degradation, leading to a denial of service condition. Testing showed that processing 10,000 characters of non-numerical input took 0.57 seconds, while 100,000 characters took over 57 seconds, demonstrating exponential growth in processing time. This can result in total loss of availability while the attack is ongoing (GitHub Issue).
The vulnerability is easily exploitable with no special conditions required. An attacker can trigger the ReDoS condition by providing specially crafted non-numerical input to the parse function when dynamic typing is enabled. A proof-of-concept exploit has been publicly documented, demonstrating the attack's effectiveness (Snyk).
The vulnerability was patched in version 5.2.0 by modifying the regular expression pattern to /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)(e[-+]?\d+)?\s*$/. Users are recommended to upgrade to version 5.2.0 or later to address this security issue (GitHub Commit).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."