CVE-2021-43838: Vulnerability in jsx-slack - Insufficient Patch for ReDoS

jsx-slack Updated 02 Oct 2025

Summary

06/01/2022
Yes i
Moderate
5.3

CVE-2021-43843: jsx-slack insufficient patch for CVE-2021-43838 ReDoS. Affects jsx-slack versions < 4.5.2. Fixed in 4.5.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

jsx-slack is an npm package that provides a JSX-based syntax for generating Slack messages. It allows developers to create Slack message layouts using JSX syntax, making it easier to generate complex message structures. However, versions of jsx-slack up to v4.5.1 are vulnerable to a Regular Expression Denial of Service (ReDoS) attack. This vulnerability can be exploited by an attacker who can insert a large number of JSX elements into the <blockquote> tag, including multibyte characters.

Vulnerability Detail

The vulnerability in jsx-slack arises from an insufficient patch for CVE-2021-43838. The internal regular expression used for escaping characters in the <blockquote> tag can consume excessive computing resources when processing a large number of JSX elements with multibyte characters. This can lead to a denial of service situation where the application becomes unresponsive or crashes. The vulnerability affects jsx-slack versions up to v4.5.1.

How To Fix

Minimum fixed version

4.5.2

This is the first release that contains the fix.

npm install jsx-slack@4.5.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to update to the latest version of jsx-slack as soon as possible.

Conclusion

The vulnerability in jsx-slack (CVE-2021-43838) can lead to a denial of service situation if exploited. It is important to update to the latest version of jsx-slack (v4.5.2 or later) to mitigate this vulnerability. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for jsx-slack →

Share this vulnerability

FAQ

If exploited, this vulnerability can cause a denial of service situation where the application becomes unresponsive or crashes.

Versions up to v4.5.1 of jsx-slack are affected by this vulnerability.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply provide your package-lock.json file and the Vulert Playground will analyze it for vulnerabilities in real-time.

There are no known public exploits for this vulnerability at the time of this report.

You can find more information about this vulnerability in the GitHub Security Advisory at https://github.com/yhatt/jsx-slack/security/advisories/GHSA-55xv-f85c-248q.

Related vulnerabilities

Recent vulnerabilities recorded for jsx-slack.

How To Fix

Minimum fixed version

4.5.2

This is the first release that contains the fix.

npm install jsx-slack@4.5.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback