Impact
The reTrimSpace regex has 2nd degree polynomial inefficiency, leading to a delayed response given a big payload.
Patches
The issue has been patched in 0.3.0 (#11) and all users are recommended to upgrade to the latest version. It is fully compatible with previous versions.
Workarounds
Not using the replace, unemojify or strip functions.
References
https://huntr.dev/bounties/444f2255-5085-466f-ba0e-5549fa8846a3/
Impact
The reTrimSpace regex has 2nd degree polynomial inefficiency, leading to a delayed response given a big payload.
Patches
The issue has been patched in 0.3.0 (#11) and all users are recommended to upgrade to the latest version. It is fully compatible with previous versions.
Workarounds
Not using the
replace,unemojifyorstripfunctions.References
https://huntr.dev/bounties/444f2255-5085-466f-ba0e-5549fa8846a3/