{"id":"CVE-2021-43838","published":"2021-12-17T18:20:11Z","modified":"2024-08-04T04:10:16Z","title":"Regular Expression Denial of Service (ReDoS) in jsx-slack","vendor":"yhatt","product":"jsx-slack","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01422,"percentile":0.73527,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/yhatt/jsx-slack/security/advisories/GHSA-55xv-f85c-248q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/yhatt/jsx-slack/commit/36e4a10405e4c7745333e245fcc5029c02c7065d","tags":["x_refsource_MISC"]}],"priority":{"score":18.4,"factors":[{"name":"EPSS percentile","points":14.71},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"yhatt","affectedVersions":[{"vendor":"yhatt","product":"jsx-slack","versions":["< 4.5.1"]}],"affected":[{"ecosystem":"npm","package":"jsx-slack","vulnerableRanges":["<4.5.1"],"patched":["4.5.1"],"from":["GHSA-55xv-f85c-248q"],"provenance":"source"}],"summary":{"text":"The jsx-slack library, which builds Slack Block Kit JSON objects from JSX, contains a regular expression denial-of-service (ReDoS) flaw in its internal regex for escaping characters within <blockquote> tags. An attacker who can submit content containing a large number of JSX elements inside a <blockquote> tag can cause that regex to consume excessive computing resources, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:36:39Z"},"euvd":{"id":"EUVD-2021-2445","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-yhatt-jsx-slack-cve-2021-43838","children":[{"from":"CVE-2021-43838","to":"CVE-2021-43843","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"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.","from":"CVE.org","in":"CVE-2021-43843"},{"kind":"osv-related","provenance":"source","id":"GHSA-55xv-f85c-248q","via":"related"},{"kind":"osv-related","provenance":"source","id":"GHSA-hp68-xhvj-x6j6","via":"reference","url":"https://github.com/yhatt/jsx-slack/security/advisories/GHSA-55xv-f85c-248q"},{"kind":"version-step","provenance":"source","package":"npm:jsx-slack","fromFixed":"4.5.1","toFixed":"4.5.2","daysApart":3},{"kind":"same-code","provenance":"machine","files":["src/mrkdwn/escape.ts"],"commits":["https://github.com/yhatt/jsx-slack/commit/36e4a10405e4c7745333e245fcc5029c02c7065d","https://github.com/yhatt/jsx-slack/commit/46bc88391d89d5fda4ce689e18ca080bcdd29ecc"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.75,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2021-43838","published":"2021-12-17","fixed":"4.5.1","kev":false},{"cve":"CVE-2021-43843","published":"2021-12-20","fixed":"4.5.2","kev":false}],"package":"npm:jsx-slack"}}