Advisory

GHSA-xrx9-gj26-5wx9

Also known as: CVE-2022-35923

Summary

v8n vulnerable to Inefficient Regular Expression Complexity

Details

Impact
Inefficient regular expression complexity of lowercase() and uppercase() regex could lead to a denial of service attack. With a formed payload 'a' + 'a'.repeat(i) + 'A', only 32 characters payload could take 29443 ms time execution when testing lowercase(). The same issue happens with uppercase().

Patches
v1.5.1

References
huntr.dev report
_Regular Expression Denial of Service (ReDoS) and Catastrophic Backtracking_

For more information
If you have any questions or comments about this advisory:

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-10-07 07:33 UTC
Modified
2023-11-08 04:09 UTC

Affected packages and fixes

v8n

npm · All systems

Affected

  • introduced 0, fixed 1.5.1 (semver)

Fixed versions

1.5.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences