# CVE-2021-43843: Insufficient patch for Regular Expression Denial of Service (ReDoS) to jsx-slack v4.5.1

- 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.98%, higher than 81% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-12-20T21:15:12.000Z
- Modified: 2026-06-17T04:11:33.273Z
- Also known as: GHSA-hp68-xhvj-x6j6
- Weaknesses: CWE-400, CWE-1333
- Assigned by: GitHub_M

## Description

jsx-slack is a package for building JSON objects for Slack block kit surfaces from JSX. The maintainers found the patch for CVE-2021-43838 in jsx-slack v4.5.1 is insufficient tfor protection from a Regular Expression Denial of Service (ReDoS) attack. If an attacker can put a lot of JSX elements into `<blockquote>` tag _with including multibyte characters_, an internal regular expression for escaping characters may consume an excessive amount of computing resources. v4.5.1 passes the test against ASCII characters but misses the case of multibyte characters. jsx-slack v4.5.2 has updated regular expressions for escaping blockquote characters to prevent catastrophic backtracking. It is also including an updated test case to confirm rendering multiple tags in `<blockquote>` with multibyte characters.

(As written by CVE List.)

## Affected

- yhatt jsx-slack: < 4.5.2
- jsx-slack (npm): before 4.5.2
- 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 5.3 Medium `CVSS:3.1/AV:N/AC:L/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-hp68-xhvj-x6j6> (exploit, patch, third-party-advisory, web)
- <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/46bc88391d89d5fda4ce689e18ca080bcdd29ecc> (patch, third-party-advisory, web)
- <https://github.com/yhatt/jsx-slack/releases/tag/v4.5.2> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-43843> (advisory)
- <https://github.com/yhatt/jsx-slack/security> (web)

## Sources

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

---

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