{"id":"CVE-2021-43843","aliases":["CVE-2021-43843","GHSA-hp68-xhvj-x6j6"],"related":[],"kind":"vulnerability","state":"published","title":"Insufficient patch for Regular Expression Denial of Service (ReDoS) to jsx-slack v4.5.1","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"We found the patch for CVE-2021-43838 in jsx-slack v4.5.1 is insufficient to save from Regular Expression Denial of Service (ReDoS) attack.\n\nThis vulnerability affects to jsx-slack v4.5.1 and earlier versions.\n\n### Impact\n\nIf 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.\n\n```javascript\n/** @jsxImportSource jsx-slack */\nimport { Section } from 'jsx-slack'\n\nconsole.log(\n  <Section>\n    <blockquote>\n      {[...Array(40)].map(() => (\n        <p>亜</p>\n      ))}\n    </blockquote>\n  </Section>\n)\n```\n\nv4.5.1 has released by passing the test against ASCII characters but missed the case of multibyte characters.\nhttps://github.com/yhatt/jsx-slack/security/advisories/GHSA-55xv-f85c-248q\n\n### Patches\n\njsx-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.\n\n### References\n\n- https://github.com/yhatt/jsx-slack/commit/46bc88391d89d5fda4ce689e18ca080bcdd29ecc\n\n### Credits\n\nThanks to @hieki for finding out this vulnerability.","format":"markdown","source":"ghsa"},{"lang":"es","text":"jsx-slack es un paquete para construir objetos JSON para las superficies del kit de bloques Slack desde JSX. Los mantenedores encontraron que el parche para CVE-2021-43838 en jsx-slack versión v4.5.1, es insuficiente para la protección contra un ataque de denegación de servicio por expresión regular (ReDoS). Si un atacante puede poner muchos elementos JSX en la etiqueta \"(blockquote)\" con inclusión de caracteres multibyte_, una expresión regular interna para el escape de caracteres puede consumir una cantidad excesiva de recursos informáticos. jsx-slack versión v4.5.1, pasa la prueba contra caracteres ASCII pero falla en el caso de los caracteres multibyte. jsx-slack versión v4.5.2, ha actualizado las expresiones regulares para el escape de caracteres blockquote con el fin de evitar el retroceso catastrófico. También incluye un caso de prueba actualizado para confirmar la representación de múltiples etiquetas en \"(blockquote)\" con caracteres multibyte","source":"nvd"}],"published":"2021-12-20T21:15:12.000Z","modified":"2026-06-17T04:11:33.273Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-400","CWE-1333"],"affected":[{"ranges":[{"version":"< 4.5.2","status":"affected"}],"vendor":"yhatt","product":"jsx-slack","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.5.2"}],"ecosystem":"npm","package":"jsx-slack","purl":"pkg:npm/jsx-slack","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.5.2"}],"vendor":"jsx-slack_project","product":"jsx-slack","cpe":"cpe:2.3:a:jsx-slack_project:jsx-slack:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/yhatt/jsx-slack/security/advisories/GHSA-hp68-xhvj-x6j6","tags":["exploit","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/yhatt/jsx-slack/security/advisories/GHSA-55xv-f85c-248q","tags":["exploit","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/yhatt/jsx-slack/commit/46bc88391d89d5fda4ce689e18ca080bcdd29ecc","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/yhatt/jsx-slack/releases/tag/v4.5.2","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43843","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/yhatt/jsx-slack/security","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-43843","url":"https://www.cve.org/CVERecord?id=CVE-2021-43843","licence":"CVE Terms of Use","modified":"2024-08-04T04:10:16.503Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hp68-xhvj-x6j6","url":"https://github.com/advisories/GHSA-hp68-xhvj-x6j6","licence":"CC-BY-4.0","modified":"2026-02-04T02:28:11.199Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-43843","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43843","licence":"Public domain","modified":"2026-06-17T04:11:33.273Z"}],"updatedAt":"2026-11-25T22:24:36.337Z","epss":{"score":0.01979,"percentile":0.81125,"date":"2026-12-01T12:00:22.000Z"}}