Vulnerability · Published Apr 28, 2023 · Assigned by GitHub_M
CVE-2023-30858Denosaurs emoji has ReDoS vulnerability in `replace` function
Medium 5.3
In plain English
A medium-severity regular-expression denial of service in emoji from denosaurs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 67% of all known vulnerabilities).
Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)1.2%top 32.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official 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 (as reported)
Weakness: CWE-1333 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
References
- https://github.com/denosaurs/emoji/security/advisories/GHSA-w2xx-hjhp-gx5v x_refsource_CONFIRM
- https://github.com/denosaurs/emoji/pull/11 x_refsource_MISC
- https://huntr.dev/bounties/444f2255-5085-466f-ba0e-5549fa8846a3/ x_refsource_MISC