{"id":"CVE-2023-30858","summary":"Denosaurs emoji has ReDoS vulnerability in `replace` function ","details":"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.","aliases":["GHSA-w2xx-hjhp-gx5v"],"modified":"2026-08-12T03:51:31.638262014Z","published":"2023-04-28T20:49:26.858Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-1333"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/30xxx/CVE-2023-30858.json"},"references":[{"type":"WEB","url":"https://huntr.dev/bounties/444f2255-5085-466f-ba0e-5549fa8846a3/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/30xxx/CVE-2023-30858.json"},{"type":"ADVISORY","url":"https://github.com/denosaurs/emoji/security/advisories/GHSA-w2xx-hjhp-gx5v"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30858"},{"type":"FIX","url":"https://github.com/denosaurs/emoji/pull/11"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/denosaurs/emoji","events":[{"introduced":"80d8525298b86396a268e065f5584f91d31c4f03"},{"fixed":"a61ec134727eb9c7ede85ebad89e0d20074ead7c"}],"database_specific":{"cpe":"cpe:2.3:a:denosaurs:emoji:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"0.3.0"},{"introduced":"0.1.0"}],"source":["AFFECTED_FIELD","CPE_RANGE"]}}],"versions":["0.2.1","0.2.0","0.1.2","0.1.1","0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-30858.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"}]}