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

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.21%, higher than 68% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-04-28T20:49:26.858Z
- Modified: 2026-06-17T05:55:47.387Z
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- denosaurs emoji: < 0.3.0; from 0.1.0 before 0.3.0

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://huntr.dev/bounties/444f2255-5085-466f-ba0e-5549fa8846a3/> (exploit)
- <https://github.com/denosaurs/emoji/security/advisories/GHSA-w2xx-hjhp-gx5v> (vendor-advisory)
- <https://github.com/denosaurs/emoji/pull/11> (patch)

## Sources

- CVE List: [CVE-2023-30858](https://www.cve.org/CVERecord?id=CVE-2023-30858), CVE Terms of Use, modified 2025-01-30
- NVD: [CVE-2023-30858](https://nvd.nist.gov/vuln/detail/CVE-2023-30858), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-30858 · Whole record: https://cve.day/CVE-2023-30858.json · Rebuilt by cve.day 2026-11-25T22:58:23.826Z
