{"api_version":"1","generated_at":"2026-07-24T19:59:10+00:00","cve":"CVE-2023-30858","urls":{"html":"https://cve.report/CVE-2023-30858","api":"https://cve.report/api/cve/CVE-2023-30858.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-30858","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-30858"},"summary":{"title":"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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-04-28 21:15:00","updated_at":"2023-05-08 17:41:00"},"problem_types":["CWE-1333"],"metrics":[],"references":[{"url":"https://huntr.dev/bounties/444f2255-5085-466f-ba0e-5549fa8846a3/","name":"https://huntr.dev/bounties/444f2255-5085-466f-ba0e-5549fa8846a3/","refsource":"MISC","tags":[],"title":"huntr – Security Bounties for any GitHub repository","mime":"text/html","httpstatus":"404","archivestatus":"404"},{"url":"https://github.com/denosaurs/emoji/security/advisories/GHSA-w2xx-hjhp-gx5v","name":"https://github.com/denosaurs/emoji/security/advisories/GHSA-w2xx-hjhp-gx5v","refsource":"MISC","tags":[],"title":"ReDoS vulnerability in `replace` function  · Advisory · denosaurs/emoji · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/denosaurs/emoji/pull/11","name":"https://github.com/denosaurs/emoji/pull/11","refsource":"MISC","tags":[],"title":"fix: remove `reTrimSpace` in favor of `trim` by eliassjogreen · Pull Request #11 · denosaurs/emoji · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-30858","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30858","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"30858","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"denosaurs","cpe5":"emoji","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2023-30858","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-1333: Inefficient Regular Expression Complexity","cweId":"CWE-1333"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"denosaurs","product":{"product_data":[{"product_name":"emoji","version":{"version_data":[{"version_affected":"=","version_value":"< 0.3.0"}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/denosaurs/emoji/security/advisories/GHSA-w2xx-hjhp-gx5v","refsource":"MISC","name":"https://github.com/denosaurs/emoji/security/advisories/GHSA-w2xx-hjhp-gx5v"},{"url":"https://github.com/denosaurs/emoji/pull/11","refsource":"MISC","name":"https://github.com/denosaurs/emoji/pull/11"},{"url":"https://huntr.dev/bounties/444f2255-5085-466f-ba0e-5549fa8846a3/","refsource":"MISC","name":"https://huntr.dev/bounties/444f2255-5085-466f-ba0e-5549fa8846a3/"}]},"source":{"advisory":"GHSA-w2xx-hjhp-gx5v","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"}]}},"nvd":{"publishedDate":"2023-04-28 21:15:00","lastModifiedDate":"2023-05-08 17:41:00","problem_types":["CWE-1333"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:denosaurs:emoji:*:*:*:*:*:*:*:*","versionStartIncluding":"0.1.0","versionEndExcluding":"0.3.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}