# CVE-2021-3810: Inefficient Regular Expression Complexity in cdr/code-server

- Severity: High 7.5 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.26%, higher than 70% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-09-17T06:15:24.000Z
- Modified: 2026-09-10T03:49:27.306Z
- Also known as: GHSA-49x3-8228-3w3m
- Weaknesses: CWE-1333
- Assigned by: @huntrdev

## Description

code-server is vulnerable to Inefficient Regular Expression Complexity

(As written by CVE List.)

## Affected

- cdr cdr/code-server: from unspecified before 3.12.0
- code-server (npm): before 3.12.0
- coder code-server: before 3.12.0

## Every score

- @huntrdev: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 7.8 High `AV:N/AC:L/Au:N/C:N/I:N/A:C`

## References

- <https://huntr.dev/bounties/38888513-30fc-4d8f-805d-34070d60e223> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://github.com/cdr/code-server/commit/ca617df135e78833f93c8320cb2d2cf8bba809f5> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3810> (advisory)
- <https://github.com/cdr/code-server> (package)

## Sources

- CVE List: [CVE-2021-3810](https://www.cve.org/CVERecord?id=CVE-2021-3810), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-49x3-8228-3w3m](https://github.com/advisories/GHSA-49x3-8228-3w3m), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-3810](https://nvd.nist.gov/vuln/detail/CVE-2021-3810), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3810 · Whole record: https://cve.day/CVE-2021-3810.json · Rebuilt by cve.day 2026-11-25T22:58:04.027Z
