{"id":"UBUNTU-CVE-2021-3807","details":"ansi-regex is vulnerable to Inefficient Regular Expression Complexity","modified":"2026-05-20T16:06:29.032024558Z","published":"2021-09-17T07:15:00Z","upstream":["CVE-2021-3807"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-3807"},{"type":"REPORT","url":"https://huntr.dev/bounties/5b3cf33b-ede0-4398-9974-800876dfd994"},{"type":"REPORT","url":"https://github.com/chalk/ansi-regex/commit/8d1d7cdb586269882c4bdc1b7325d0c58c8f76f9"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-3807"}],"affected":[{"package":{"name":"node-ansi-regex","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/node-ansi-regex?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.0-1","3.0.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-ansi-regex","binary_version":"3.0.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3807.json"}},{"package":{"name":"node-ansi-regex","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/node-ansi-regex?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.0-1","5.0.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"5.0.0-1","binary_name":"node-ansi-regex"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3807.json"}},{"package":{"name":"node-ansi-regex","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/node-ansi-regex?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.0.0-1","5.0.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"5.0.1-1","binary_name":"node-ansi-regex"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3807.json"}},{"package":{"name":"node-ansi-regex","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/node-ansi-regex?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.0.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-ansi-regex","binary_version":"5.0.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3807.json"}},{"package":{"name":"node-ansi-regex","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/node-ansi-regex?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.0.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-ansi-regex","binary_version":"5.0.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3807.json"}},{"package":{"name":"node-ansi-regex","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/node-ansi-regex?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.0.1-1","6.2.2+~cs4.0.2-1build3"],"ecosystem_specific":{"binaries":[{"binary_version":"6.2.2+~cs4.0.2-1build3","binary_name":"node-ansi-regex"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3807.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}