CVE-2023-30858

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-30858
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-30858.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-30858
Aliases
  • GHSA-w2xx-hjhp-gx5v
Published
2023-04-28T20:49:26Z
Modified
2025-10-22T18:37:29.932950Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
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.

Database specific
{
    "cwe_ids": [
        "CWE-1333"
    ]
}
References

Affected packages

Git / github.com/denosaurs/emoji

Affected ranges

Type
GIT
Repo
https://github.com/denosaurs/emoji
Events

Affected versions

0.*

0.1.0
0.1.1
0.1.2
0.2.0
0.2.1