CVE-2026-21868 Details
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.
A Regular Expression Denial-of-Service (ReDoS) vulnerability has been identified in Flag Forge versions prior to 2.3.3. The issue resides in the user profile API endpoint, where the application dynamically constructs regular expressions using unescaped user input from the username parameter. This vulnerability can be exploited by sending a crafted username that includes regex meta-characters, such as deeply nested groups or quantifiers. Such exploitation causes the MongoDB regex engine to use excessive CPU resources, leading to a denial-of-service condition for other users.
The vulnerability has been patched in version 2.3.3. Users are advised to update to this version. As an additional measure, a Web Application Firewall (WAF) rule can be implemented to block requests containing regex meta-characters in the URL path.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/FlagForgeCTF/flagForge/security/advisories/GHSA-949h-9824-xmcx | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1333 | Inefficient Regular Expression Complexity | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| flagforge flagforge | >= 2.0, < 2.3.3 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 20, 2026 | Initial Analysis | [email protected] |
| Jan 8, 2026 | New CVE Received | [email protected] |