{"id":"CVE-2021-3807","published":"2021-09-17T00:00:00Z","modified":"2026-10-08T21:14:08Z","title":"Inefficient Regular Expression Complexity in chalk/ansi-regex","vendor":"chalk","product":"chalk/ansi-regex","tier":"tail","description":{"text":"ansi-regex is vulnerable to Inefficient Regular Expression Complexity","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03552,"percentile":0.89586,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://huntr.dev/bounties/5b3cf33b-ede0-4398-9974-800876dfd994","tags":[]},{"url":"https://github.com/chalk/ansi-regex/commit/8d1d7cdb586269882c4bdc1b7325d0c58c8f76f9","tags":[]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20221014-0002/","tags":[]}],"priority":{"score":23.2,"factors":[{"name":"EPSS percentile","points":17.92},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"chalk","affectedVersions":[{"vendor":"chalk","product":"chalk/ansi-regex","versions":[">= unspecified, < 6.0.1",">= unspecified, < 5.0.1"]}],"fixedVersions":[{"vendor":"chalk","product":"chalk/ansi-regex","versions":["5.0.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-08T21:13:38.294387Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"ansi-regex","vulnerableRanges":[">=6.0.0, <6.0.1",">=5.0.0, <5.0.1",">=4.0.0, <4.1.1",">=3.0.0, <3.0.1"],"patched":["6.0.1","5.0.1","4.1.1","3.0.1"],"from":["GHSA-93q8-gq69-wqmw"],"provenance":"source"}],"summary":{"text":"The flaw is an inefficient regular expression complexity issue in the chalk/ansi-regex component, which is the ansi-regex package maintained under the chalk project. An attacker who can send input to an application that processes text through this component, without needing credentials or any user interaction, can trigger excessive regex backtracking to exhaust resources and disrupt availability.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:40:31Z"},"euvd":{"id":"EUVD-2021-2021","exploited":false,"provenance":"source"}}