{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-3807","id":"CVE-2021-3807","title":"Inefficient Regular Expression Complexity in chalk/ansi-regex","description":"ansi-regex is vulnerable to Inefficient Regular Expression Complexity","descriptionLong":"ansi-regex is vulnerable to Inefficient Regular Expression Complexity","published":"2021-09-17T00:00:00.000Z","updated":"2026-10-20T10:53:52.178864089Z","reserved":"2021-09-16T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"@huntrdev","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub"},{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"@huntrdev"},{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"huntr.dev"},{"version":"2.0","score":7.8,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:C","rating":"high","source":"NVD"}],"rating":"high","products":["chalk/ansi-regex"],"affectedProducts":[{"vendor":"chalk","product":"chalk/ansi-regex","defaultStatus":null,"versions":[{"version":"unspecified","lessThan":"6.0.1","status":"affected","versionType":"custom"},{"version":"unspecified","lessThan":"5.0.1","status":"affected","versionType":"custom"},{"version":"5.0.1","status":"unaffected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"ansi-regex","purl":"pkg:npm/ansi-regex","ranges":[">=6.0.0 <6.0.1",">=5.0.0 <5.0.1",">=4.0.0 <4.1.1",">=3.0.0 <3.0.1"],"fixed":["6.0.1","5.0.1","4.1.1","3.0.1"],"advisory":"GHSA-93q8-gq69-wqmw"}],"cwes":["CWE-1333","CWE-697"],"aliases":["GHSA-93q8-gq69-wqmw"],"references":[{"url":"https://huntr.dev/bounties/5b3cf33b-ede0-4398-9974-800876dfd994","tags":["x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/chalk/ansi-regex/commit/8d1d7cdb586269882c4bdc1b7325d0c58c8f76f9","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://security.netapp.com/advisory/ntap-20221014-0002/","tags":["x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3807","tags":["advisory"]},{"url":"https://github.com/chalk/ansi-regex/issues/38#issuecomment-924086311","tags":["web"]},{"url":"https://github.com/chalk/ansi-regex/issues/38#issuecomment-925924774","tags":["web"]},{"url":"https://github.com/chalk/ansi-regex/commit/419250fa510bf31b4cc672e76537a64f9332e1f1","tags":["web"]},{"url":"https://github.com/chalk/ansi-regex/commit/75a657da7af875b2e2724fd6331bf0a4b23d3c9a","tags":["web"]},{"url":"https://github.com/chalk/ansi-regex/commit/c3c0b3f2736b9c01feec0fef33980c43720dcde8","tags":["web"]},{"url":"https://app.snyk.io/vuln/SNYK-JS-ANSIREGEX-1583908","tags":["web"]},{"url":"https://github.com/chalk/ansi-regex","tags":["package"]},{"url":"https://github.com/chalk/ansi-regex/releases/tag/v6.0.1","tags":["web"]},{"url":"https://security.netapp.com/advisory/ntap-20221014-0002","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.03552,"epssPercentile":0.89554,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-3807","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3807","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-3807","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-93q8-gq69-wqmw","ok":true,"note":"GHSA-93q8-gq69-wqmw"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-3807","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}