What’s Vulnerable › Vulnerabilities

CVE-2023-30858: Denosaurs emoji has ReDoS vulnerability in `replace` function

Description

The Denosaurs emoji package provides emojis for dinosaurs. Starting in version 0.1.0 and prior to version 0.3.0, the reTrimSpace regex has 2nd degree polynomial inefficiency, leading to a delayed response given a big payload. The issue has been patched in 0.3.0. As a workaround, avoid using the `replace`, `unemojify`, or `strip` functions.

Affected products

How to fix

Upgrade to a fixed version: denosaurs emoji 0.3.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2023-30858 or the next vulnerability affects your stack