Skip to content
Heist/ feed
Back to feed
Critical

FlagForgeCTF's Improper Session Handling Allows Access After Logout

Type: advisorySources: OSV

Flag Forge is a Capture The Flag (CTF) platform. In versions from 2.2.0 to before 2.3.1, the FlagForge web application improperly handles session invalidation. Authenticated users can continue to access protected endpoints, such as /api/profile, even after logging out. CSRF tokens are also still valid post-logout, which can allow unauthorized actions. This issue has been patched in version 2.3.1.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-59841
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 18:25 UTC · Revision 1

Source evidence

FlagForgeCTF's Improper Session Handling Allows Access After Logout

core-osv · Original source

Published 25 Sept 2025, 15:15 UTC

Flag Forge is a Capture The Flag (CTF) platform. In versions from 2.2.0 to before 2.3.1, the FlagForge web application improperly handles session invalidation. Authenticated users can continue to access protected endpoints, such as /api/profile, even after logging out. CSRF tokens are also still valid post-logout, which can allow unauthorized actions. This issue has been patched in version 2.3.1.

osv:CVE-2025-59841
Complete source record
{
  "id": "d4ac862b3643fcca71f181f07d92548ba5ae789756f577b25a6cb34ebfdaa308",
  "url": "https://osv.dev/vulnerability/CVE-2025-59841",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "FlagForgeCTF's Improper Session Handling Allows Access After Logout",
    "summary": "Flag Forge is a Capture The Flag (CTF) platform. In versions from 2.2.0 to before 2.3.1, the FlagForge web application improperly handles session invalidation. Authenticated users can continue to access protected endpoints, such as /api/profile, even after logging out. CSRF tokens are also still valid post-logout, which can allow unauthorized actions. This issue has been patched in version 2.3.1.",
    "evidence": "osv:CVE-2025-59841",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2025-59841",
      "aliases": [
        "CVE-2025-59841",
        "GHSA-h6pr-4cwv-6cjg"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/flagforgectf/flagforge",
              "type": "GIT",
              "events": [
                {
                  "introduced": "ec34b48eaa1c62b03911778dd1309aa25aabdc20"
                },
                {
                  "fixed": "304b6c82a4f76871b336404b91e5cdd8a7d7d5bd"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "2.2.0"
                      },
                      {
                        "fixed": "2.3.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "304b6c82a4f76871b336404b91e5cdd8a7d7d5bd"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "cpe": "cpe:2.3:a:flagforge:flagforge:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.2"
                      },
                      {
                        "fixed": "2.3.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.3",
            "v2.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-59841.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:38.280248506Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59841.json",
        "https://github.com/FlagForgeCTF/flagForge/security/advisories/GHSA-h6pr-4cwv-6cjg",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-59841",
        "https://github.com/FlagForgeCTF/flagForge/commit/304b6c82a4f76871b336404b91e5cdd8a7d7d5bd"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-384",
          "CWE-613"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59841.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-59841",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 505673,
  "published_at": "2025-09-25T15:15:45.438+00:00"
}