Skip to content
OpenAdvisories
Medium · 5.3 CVE-2023-30858 EUVD-2023-35201

Denosaurs emoji has ReDoS vulnerability in `replace` function

Published Apr 28, 2023 · Updated Jan 30, 2025 · Assigned by GitHub_M

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

VendorProductAffectedFixed
denosaurs emoji < 0.3.0 —

References