Skip to content
OpenAdvisories
Medium · 5.3 CVE-2021-43838 EUVD-2021-2445GHSA-55xv-f85c-248q

Regular Expression Denial of Service (ReDoS) in jsx-slack

Published Dec 17, 2021 · Updated Aug 4, 2024 · 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.

Affected products

VendorProductAffectedFixed
yhatt jsx-slack < 4.5.1 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm jsx-slack < 4.5.1 4.5.1 GHSA-55xv-f85c-248q

References