{"id":"CVE-2023-30858","aliases":["EUVD-2023-35201","GHSA-w2xx-hjhp-gx5v"],"status":"published","title":"Denosaurs emoji has ReDoS vulnerability in `replace` function","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.","severity":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.01162,"percentile":0.67465,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-1333"],"published":"2023-04-28T20:49:26Z","modified":"2026-10-28T02:31:03Z","products":[{"vendor":"denosaurs","product":"emoji"}],"references":[{"url":"https://github.com/denosaurs/emoji/security/advisories/GHSA-w2xx-hjhp-gx5v","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory"]},{"url":"https://github.com/denosaurs/emoji/pull/11","tags":["x_refsource_MISC","x_transferred","Patch","fix"]},{"url":"https://huntr.dev/bounties/444f2255-5085-466f-ba0e-5549fa8846a3/","tags":["x_refsource_MISC","x_transferred","Exploit","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/30xxx/CVE-2023-30858.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30858","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2023-30858","title":"Denosaurs emoji has ReDoS vulnerability in `replace` function ","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.","status":"published","published":"2023-04-28T20:49:26.858Z","modified":"2025-01-30T18:44:30.234Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"cna"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T14:35:22.640346Z"}],"euvd":[{"id":"EUVD-2023-35201","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.","status":"published","published":"2023-04-28T20:49:26Z","modified":"2025-01-30T18:44:30Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"updated_at":"2026-11-03T00:04:09.009549Z"}],"nvd":[{"id":"CVE-2023-30858","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.","status":"published","published":"2023-04-28T21:15:09.187Z","modified":"2026-06-17T05:55:47.387Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"secondary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T14:07:59.151142Z"}],"osv":[{"id":"CVE-2023-30858","title":"Denosaurs emoji has ReDoS vulnerability in `replace` function ","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.","status":"published","published":"2023-04-28T20:49:26.858Z","modified":"2026-10-28T02:31:03.672176431Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T15:44:31.790231Z"}]}}
