[GHSA-fhg7-m89q-25r3] ReDoS Vulnerability in ua-parser-js version #6325
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updates
Comments
According to the entry in NVD (https://nvd.nist.gov/vuln/detail/cve-2022-25927) for this CVE/GHSA, only versions of ua-parser-js from 0.7.30 to 0.7.33 are impacted. This GHSA does not include this lower bound of 0.7.30 for impacted versions.
I investigated the discrepancy and can see that in version 0.7.30 of ua-parser-js, the code vulnerable to ReDoS was introduced: faisalman/ua-parser-js@336ce2b (faisalman/ua-parser-js@336ce2b)
The fix was committed in version 0.7.33: faisalman/ua-parser-js@a6140a1 (faisalman/ua-parser-js@a6140a1)
Therefore, I believe that we can confidently update the version range for this GHSA to be consistent with the information in NVD.