{"id":"CVE-2023-30858","aliases":["CVE-2023-30858"],"related":[],"kind":"vulnerability","state":"published","title":"Denosaurs emoji has ReDoS vulnerability in `replace` function","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2023-04-28T20:49:26.858Z","modified":"2026-06-17T05:55:47.387Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"version":"< 0.3.0","status":"affected"}],"vendor":"denosaurs","product":"emoji","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"0.1.0","fixed":"0.3.0"}],"vendor":"denosaurs","product":"emoji","cpe":"cpe:2.3:a:denosaurs:emoji:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/denosaurs/emoji/security/advisories/GHSA-w2xx-hjhp-gx5v","tags":["vendor-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/denosaurs/emoji/pull/11","tags":["patch","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://huntr.dev/bounties/444f2255-5085-466f-ba0e-5549fa8846a3/","tags":["exploit","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-01-30T18:44:21.902Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-30858","url":"https://www.cve.org/CVERecord?id=CVE-2023-30858","licence":"CVE Terms of Use","modified":"2025-01-30T18:44:30.234Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-30858","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30858","licence":"Public domain","modified":"2026-06-17T05:55:47.387Z"}],"updatedAt":"2026-11-25T22:58:23.826Z","epss":{"score":0.0121,"percentile":0.68394,"date":"2026-11-30T12:00:22.000Z"}}