# CVE-2021-43838: Regular Expression Denial of Service (ReDoS) in jsx-slack

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.42%, higher than 73% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-12-17T18:20:11.000Z
- Modified: 2026-07-08T06:26:54.469Z
- Also known as: GHSA-55xv-f85c-248q
- Related: CVE-2021-43843
- Weaknesses: CWE-400, CWE-1333
- Assigned by: GitHub_M

## Description

jsx-slack is a library for building JSON objects for Slack Block Kit surfaces from JSX. In versions prior to 4.5.1 users are vulnerable to a regular expression denial-of-service (ReDoS) attack. If attacker can put a lot of JSX elements into `<blockquote>` tag, an internal regular expression for escaping characters may consume an excessive amount of computing resources. jsx-slack v4.5.1 has patched to a regex for escaping blockquote characters. Users are advised to upgrade as soon as possible.

(As written by CVE List.)

## Affected

- yhatt jsx-slack: < 4.5.1
- jsx-slack (npm): before 4.5.1
- jsx-slack_project jsx-slack: before 4.5.2

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/yhatt/jsx-slack/security/advisories/GHSA-55xv-f85c-248q> (exploit, patch, third-party-advisory, web)
- <https://github.com/yhatt/jsx-slack/commit/36e4a10405e4c7745333e245fcc5029c02c7065d> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-43838> (advisory)
- <https://github.com/yhatt/jsx-slack> (web)

## Sources

- CVE List: [CVE-2021-43838](https://www.cve.org/CVERecord?id=CVE-2021-43838), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-55xv-f85c-248q](https://github.com/advisories/GHSA-55xv-f85c-248q), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-43838](https://nvd.nist.gov/vuln/detail/CVE-2021-43838), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-43838 · Whole record: https://cve.day/CVE-2021-43838.json · Rebuilt by cve.day 2026-11-25T22:24:36.318Z
