{
    "document": {
        "category": "csaf_base",
        "csaf_version": "2.0",
        "distribution": {
            "tlp": {
                "label": "WHITE"
            }
        },
        "lang": "en",
        "notes": [
            {
                "category": "legal_disclaimer",
                "text": "The Netherlands Cyber Security Center (henceforth: NCSC-NL) maintains this portal to enhance access to its information and vulnerabilities. The use of this information is subject to the following terms and conditions:\n\nThe vulnerabilities disclosed in this portal are gathered by NCSC-NL from a variety of open sources, which the user can retrieve from other platforms. NCSC-NL makes every reasonable effort to ensure that the content of this portal is kept up to date, and that it is accurate and complete. Nevertheless, NCSC-NL cannot entirely rule out the possibility of errors, and therefore cannot give any warranty in respect of its completeness, accuracy or real-time keeping up-to-date. NCSC-NL does not control nor guarantee the accuracy, relevance, timeliness or completeness of information obtained from these external sources. The vulnerabilities disclosed in this portal are intended solely for the convenience of professional parties to take appropriate measures to manage the risks posed to the cybersecurity. No rights can be derived from the information provided therein.\n\nNCSC-NL and the Kingdom of the Netherlands assume no legal liability or responsibility for any damage resulting from either the use or inability of use of the vulnerabilities disclosed in this portal. This includes damage resulting from the inaccuracy of incompleteness of the information contained in it.\nThe information on this page is subject to Dutch law. All disputes related to or arising from the use of this portal regarding the disclosure of vulnerabilities will be submitted to the competent court in The Hague. This choice of means also applies to the court in summary proceedings."
            }
        ],
        "publisher": {
            "category": "coordinator",
            "contact_details": "cert@ncsc.nl",
            "name": "National Cyber Security Centre",
            "namespace": "https://www.ncsc.nl/"
        },
        "title": "CVE-2026-28268",
        "tracking": {
            "current_release_date": "2026-03-30T18:47:55.077863Z",
            "generator": {
                "date": "2026-02-17T15:00:00Z",
                "engine": {
                    "name": "V.E.L.M.A",
                    "version": "1.7"
                }
            },
            "id": "CVE-2026-28268",
            "initial_release_date": "2026-02-27T20:38:36.458451Z",
            "revision_history": [
                {
                    "date": "2026-02-27T20:38:36.458451Z",
                    "number": "1",
                    "summary": "CVE created.| Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| Products created (1).| References created (3).| CWES updated (1)."
                },
                {
                    "date": "2026-02-27T20:38:42.788429Z",
                    "number": "2",
                    "summary": "NCSC Score created."
                },
                {
                    "date": "2026-02-27T21:25:10.290714Z",
                    "number": "3",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| References created (3).| CWES updated (1)."
                },
                {
                    "date": "2026-02-27T21:25:12.595454Z",
                    "number": "4",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-02-28T02:39:42.451158Z",
                    "number": "5",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| References created (5).| CWES updated (1)."
                },
                {
                    "date": "2026-02-28T02:39:48.674888Z",
                    "number": "6",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-02-28T12:12:52.314899Z",
                    "number": "7",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| Products connected (1).| References created (4).| CWES updated (1)."
                },
                {
                    "date": "2026-02-28T12:13:04.234211Z",
                    "number": "8",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-02-28T14:02:12.284904Z",
                    "number": "9",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| Products connected (42).| Products created (1).| References created (5).| CWES updated (1)."
                },
                {
                    "date": "2026-02-28T14:13:45.245462Z",
                    "number": "10",
                    "summary": "Source created.| CVE status created. (valid)| EPSS created."
                },
                {
                    "date": "2026-02-28T14:13:47.877483Z",
                    "number": "11",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-03T21:39:15.139356Z",
                    "number": "12",
                    "summary": "Unknown change."
                },
                {
                    "date": "2026-03-06T21:25:15.354209Z",
                    "number": "13",
                    "summary": "Products created (1).| Product Identifiers created (1)."
                },
                {
                    "date": "2026-03-06T21:25:18.322959Z",
                    "number": "14",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-07T01:17:49.532059Z",
                    "number": "15",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-20T09:37:54.446351Z",
                    "number": "16",
                    "summary": "Source connected.| CVE status created. (valid)| EPSS created."
                },
                {
                    "date": "2026-03-20T09:37:56.412043Z",
                    "number": "17",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-25T18:15:30.818864Z",
                    "number": "18",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| References created (4)."
                },
                {
                    "date": "2026-03-25T18:15:32.742591Z",
                    "number": "19",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-30T18:47:50.472832Z",
                    "number": "20",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| Products connected (1).| References created (6).| CWES updated (1)."
                },
                {
                    "date": "2026-03-30T18:47:52.388674Z",
                    "number": "21",
                    "summary": "NCSC Score updated."
                }
            ],
            "status": "interim",
            "version": "21"
        }
    },
    "product_tree": {
        "branches": [
            {
                "branches": [
                    {
                        "branches": [
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/>=0|<=0.24.6",
                                "product": {
                                    "name": "vers:unknown/>=0|<=0.24.6",
                                    "product_id": "CSAFPID-5597060"
                                }
                            }
                        ],
                        "category": "product_name",
                        "name": "api"
                    },
                    {
                        "branches": [
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/0.21.0",
                                "product": {
                                    "name": "vers:unknown/0.21.0",
                                    "product_id": "CSAFPID-5602633"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/<2.1.0",
                                "product": {
                                    "name": "vers:unknown/<2.1.0",
                                    "product_id": "CSAFPID-5736391"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.1",
                                "product": {
                                    "name": "vers:unknown/v0.1",
                                    "product_id": "CSAFPID-5602634"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.10",
                                "product": {
                                    "name": "vers:unknown/v0.10",
                                    "product_id": "CSAFPID-5602635"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.11",
                                "product": {
                                    "name": "vers:unknown/v0.11",
                                    "product_id": "CSAFPID-5602636"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.12",
                                "product": {
                                    "name": "vers:unknown/v0.12",
                                    "product_id": "CSAFPID-5602637"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.13",
                                "product": {
                                    "name": "vers:unknown/v0.13",
                                    "product_id": "CSAFPID-5602638"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.13.1",
                                "product": {
                                    "name": "vers:unknown/v0.13.1",
                                    "product_id": "CSAFPID-5602639"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.14.0",
                                "product": {
                                    "name": "vers:unknown/v0.14.0",
                                    "product_id": "CSAFPID-5602640"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.15.0",
                                "product": {
                                    "name": "vers:unknown/v0.15.0",
                                    "product_id": "CSAFPID-5602641"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.16.0",
                                "product": {
                                    "name": "vers:unknown/v0.16.0",
                                    "product_id": "CSAFPID-5602642"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.17.0",
                                "product": {
                                    "name": "vers:unknown/v0.17.0",
                                    "product_id": "CSAFPID-5602643"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.18.0",
                                "product": {
                                    "name": "vers:unknown/v0.18.0",
                                    "product_id": "CSAFPID-5602644"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.18.1",
                                "product": {
                                    "name": "vers:unknown/v0.18.1",
                                    "product_id": "CSAFPID-5602645"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.19.0",
                                "product": {
                                    "name": "vers:unknown/v0.19.0",
                                    "product_id": "CSAFPID-5602646"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.19.1",
                                "product": {
                                    "name": "vers:unknown/v0.19.1",
                                    "product_id": "CSAFPID-5602647"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.19.2",
                                "product": {
                                    "name": "vers:unknown/v0.19.2",
                                    "product_id": "CSAFPID-5602648"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.2",
                                "product": {
                                    "name": "vers:unknown/v0.2",
                                    "product_id": "CSAFPID-5602649"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.20.0",
                                "product": {
                                    "name": "vers:unknown/v0.20.0",
                                    "product_id": "CSAFPID-5602650"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.20.1",
                                "product": {
                                    "name": "vers:unknown/v0.20.1",
                                    "product_id": "CSAFPID-5602651"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.20.3",
                                "product": {
                                    "name": "vers:unknown/v0.20.3",
                                    "product_id": "CSAFPID-5602652"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.20.4",
                                "product": {
                                    "name": "vers:unknown/v0.20.4",
                                    "product_id": "CSAFPID-5602653"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.20.5",
                                "product": {
                                    "name": "vers:unknown/v0.20.5",
                                    "product_id": "CSAFPID-5602654"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.21.0",
                                "product": {
                                    "name": "vers:unknown/v0.21.0",
                                    "product_id": "CSAFPID-5602655"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.22.0",
                                "product": {
                                    "name": "vers:unknown/v0.22.0",
                                    "product_id": "CSAFPID-5602656"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.22.1",
                                "product": {
                                    "name": "vers:unknown/v0.22.1",
                                    "product_id": "CSAFPID-5602657"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.23.0",
                                "product": {
                                    "name": "vers:unknown/v0.23.0",
                                    "product_id": "CSAFPID-5602658"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.24.1",
                                "product": {
                                    "name": "vers:unknown/v0.24.1",
                                    "product_id": "CSAFPID-5602659"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.3",
                                "product": {
                                    "name": "vers:unknown/v0.3",
                                    "product_id": "CSAFPID-5602660"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.4",
                                "product": {
                                    "name": "vers:unknown/v0.4",
                                    "product_id": "CSAFPID-5602661"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.5",
                                "product": {
                                    "name": "vers:unknown/v0.5",
                                    "product_id": "CSAFPID-5602662"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.6",
                                "product": {
                                    "name": "vers:unknown/v0.6",
                                    "product_id": "CSAFPID-5602663"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.7",
                                "product": {
                                    "name": "vers:unknown/v0.7",
                                    "product_id": "CSAFPID-5602664"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.8",
                                "product": {
                                    "name": "vers:unknown/v0.8",
                                    "product_id": "CSAFPID-5602665"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.9",
                                "product": {
                                    "name": "vers:unknown/v0.9",
                                    "product_id": "CSAFPID-5602666"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.0",
                                "product": {
                                    "name": "vers:unknown/v1.0.0",
                                    "product_id": "CSAFPID-5602667"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.0-rc0",
                                "product": {
                                    "name": "vers:unknown/v1.0.0-rc0",
                                    "product_id": "CSAFPID-5602668"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.0-rc1",
                                "product": {
                                    "name": "vers:unknown/v1.0.0-rc1",
                                    "product_id": "CSAFPID-5602669"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.0-rc2",
                                "product": {
                                    "name": "vers:unknown/v1.0.0-rc2",
                                    "product_id": "CSAFPID-5602670"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.0-rc3",
                                "product": {
                                    "name": "vers:unknown/v1.0.0-rc3",
                                    "product_id": "CSAFPID-5602671"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.0-rc4",
                                "product": {
                                    "name": "vers:unknown/v1.0.0-rc4",
                                    "product_id": "CSAFPID-5602672"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.1.0",
                                "product": {
                                    "name": "vers:unknown/v1.1.0",
                                    "product_id": "CSAFPID-5727729"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.0.0",
                                "product": {
                                    "name": "vers:unknown/v2.0.0",
                                    "product_id": "CSAFPID-5749620"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/vue3",
                                "product": {
                                    "name": "vers:unknown/vue3",
                                    "product_id": "CSAFPID-5602673"
                                }
                            }
                        ],
                        "category": "product_name",
                        "name": "vikunja"
                    }
                ],
                "category": "vendor",
                "name": "go-vikunja"
            },
            {
                "branches": [
                    {
                        "branches": [
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/<=0.24.6",
                                "product": {
                                    "name": "vers:unknown/<=0.24.6",
                                    "product_id": "CSAFPID-5847612"
                                }
                            }
                        ],
                        "category": "product_name",
                        "name": "go/code.vikunja.io/api"
                    }
                ],
                "category": "vendor",
                "name": "code.vikunja.io"
            },
            {
                "branches": [
                    {
                        "branches": [
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/<2.1.0",
                                "product": {
                                    "name": "vers:unknown/<2.1.0",
                                    "product_id": "CSAFPID-5767454",
                                    "product_identification_helper": {
                                        "cpe": "cpe:2.3:a:vikunja:vikunja:*:*:*:*:*:*:*:*"
                                    }
                                }
                            }
                        ],
                        "category": "product_name",
                        "name": "vikunja"
                    }
                ],
                "category": "vendor",
                "name": "vikunja"
            }
        ]
    },
    "vulnerabilities": [
        {
            "cve": "CVE-2026-28268",
            "cwe": {
                "id": "CWE-459",
                "name": "Incomplete Cleanup"
            },
            "notes": [
                {
                    "category": "description",
                    "text": "Vikunja is an open-source self-hosted task management platform. Versions prior to 2.1.0 have a business logic vulnerability exists in the password reset mechanism of vikunja/api that allows password reset tokens to be reused indefinitely. Due to a failure to invalidate tokens upon use and a critical logic bug in the token cleanup cron job, reset tokens remain valid forever. This allows an attacker who intercepts a single reset token (via logs, browser history, or phishing) to perform a complete, persistent account takeover at any point in the future, bypassing standard authentication controls. Version 2.1.0 contains a patch for the issue.",
                    "title": "cveprojectv5 - https://www.cve.org/CVERecord?id=CVE-2026-28268"
                },
                {
                    "category": "description",
                    "text": "Vikunja is an open-source self-hosted task management platform. Versions prior to 2.1.0 have a business logic vulnerability exists in the password reset mechanism of vikunja/api that allows password reset tokens to be reused indefinitely. Due to a failure to invalidate tokens upon use and a critical logic bug in the token cleanup cron job, reset tokens remain valid forever. This allows an attacker who intercepts a single reset token (via logs, browser history, or phishing) to perform a complete, persistent account takeover at any point in the future, bypassing standard authentication controls. Version 2.1.0 contains a patch for the issue.",
                    "title": "nvd - https://nvd.nist.gov/vuln/detail/CVE-2026-28268"
                },
                {
                    "category": "description",
                    "text": "**Summary**\nA critical business logic vulnerability exists in the password reset mechanism of vikunja/api that allows password reset tokens to be reused indefinitely. Due to a failure to invalidate tokens upon use and a critical logic bug in the token cleanup cron job, reset tokens remain valid forever.\n\nThis allows an attacker who intercepts a single reset token (via logs, browser history, or phishing) to perform a complete, persistent account takeover at any point in the future, bypassing standard authentication controls.\n\n**Technical Analysis**\nThe vulnerability stems from two distinct logic errors in the pkg/user/ package that confirm the tokens are never removed.\n\n1. Logic Error in Password Reset (No Invalidation)\nIn pkg/user/user_password_reset.go, the ResetPassword function successfully updates the user's password but fails to delete the reset token used to authorize the request. Instead, it attempts to delete a TokenEmailConfirm token, leaving the TokenPasswordReset active.\n\nVulnerable Code: pkg/user/user_password_reset.go (Lines 36-94)\n```\nfunc ResetPassword(s *xorm.Session, reset *PasswordReset) (userID int64, err error) {\n    // ... [Validation and User Lookup] ...\n\n    // Hash the password\n    user.Password, err = HashPassword(reset.NewPassword)\n    if err != nil {\n        return\n    }\n\n    // FLAW: Deletes 'TokenEmailConfirm' instead of the current 'TokenPasswordReset'\n    err = removeTokens(s, user, TokenEmailConfirm)\n    if err != nil {\n        return\n    }\n\n    // ... [Update User Status and Return] ...\n    // The reset token is never removed and remains valid in the DB.\n}\n```\n2. Logic Error in Token Cleanup (Inverted Expiry)\nThe background cron job intended to expire old tokens contains an inverted comparison operator. It deletes tokens newer than 24 hours instead of older ones.\n\nVulnerable Code: pkg/user/token.go (Lines 125-151)\n```\nfunc RegisterTokenCleanupCron() {\n    // ...\n    err := cron.Schedule(\"0 * * * *\", func() {\n        // ...\n        // FLAW: \"created > ?\" selects tokens created AFTER 24 hours ago.\n        // This deletes NEW valid tokens and keeps OLD expired tokens forever.\n        deleted, err := s.\n            Where(\"created > ? AND (kind = ? OR kind = ?)\", \n            time.Now().Add(time.Hour*24*-1), \n            TokenPasswordReset, TokenAccountDeletion).\n            Delete(&Token{})\n        // ...\n    })\n}\n\n```\n\n**Impact**\nPersistent Account Takeover: An attacker with a single valid token can reset the victim's password an unlimited number of times.\n\nBypass of Remediation: Even if the victim notices suspicious activity and changes their password, the attacker can use the same old token to reset it again immediately.\n\nInfinite Attack Window: Because the cleanup cron is broken, the token effectively has a generic TTL of \"forever,\" allowing exploitation months or years after the token was issued.\n\n**Remediation**\n1. Invalidate Token on Use\nUpdate ResetPassword to delete the specific reset token upon successful completion.\n`// Recommended Fix\nerr = removeTokens(s, user, TokenPasswordReset) // Correct TokenKind`\n2. Fix Cleanup Logic\nUpdate the SQL query in RegisterTokenCleanupCron to target tokens created before the cutoff time.\n`// Recommended Fix\nWhere(\"created < ? ...\", time.Now().Add(time.Hour*24*-1), ...) // Use Less Than (<)`\n\nA fix is available at https://github.com/go-vikunja/vikunja/releases/tag/v2.1.0",
                    "title": "github - https://github.com/advisories/GHSA-rfjg-6m84-crj2"
                },
                {
                    "category": "description",
                    "text": "**Summary**\nA critical business logic vulnerability exists in the password reset mechanism of vikunja/api that allows password reset tokens to be reused indefinitely. Due to a failure to invalidate tokens upon use and a critical logic bug in the token cleanup cron job, reset tokens remain valid forever.\n\nThis allows an attacker who intercepts a single reset token (via logs, browser history, or phishing) to perform a complete, persistent account takeover at any point in the future, bypassing standard authentication controls.\n\n**Technical Analysis**\nThe vulnerability stems from two distinct logic errors in the pkg/user/ package that confirm the tokens are never removed.\n\n1. Logic Error in Password Reset (No Invalidation)\nIn pkg/user/user_password_reset.go, the ResetPassword function successfully updates the user's password but fails to delete the reset token used to authorize the request. Instead, it attempts to delete a TokenEmailConfirm token, leaving the TokenPasswordReset active.\n\nVulnerable Code: pkg/user/user_password_reset.go (Lines 36-94)\n```\nfunc ResetPassword(s *xorm.Session, reset *PasswordReset) (userID int64, err error) {\n    // ... [Validation and User Lookup] ...\n\n    // Hash the password\n    user.Password, err = HashPassword(reset.NewPassword)\n    if err != nil {\n        return\n    }\n\n    // FLAW: Deletes 'TokenEmailConfirm' instead of the current 'TokenPasswordReset'\n    err = removeTokens(s, user, TokenEmailConfirm)\n    if err != nil {\n        return\n    }\n\n    // ... [Update User Status and Return] ...\n    // The reset token is never removed and remains valid in the DB.\n}\n```\n2. Logic Error in Token Cleanup (Inverted Expiry)\nThe background cron job intended to expire old tokens contains an inverted comparison operator. It deletes tokens newer than 24 hours instead of older ones.\n\nVulnerable Code: pkg/user/token.go (Lines 125-151)\n```\nfunc RegisterTokenCleanupCron() {\n    // ...\n    err := cron.Schedule(\"0 * * * *\", func() {\n        // ...\n        // FLAW: \"created > ?\" selects tokens created AFTER 24 hours ago.\n        // This deletes NEW valid tokens and keeps OLD expired tokens forever.\n        deleted, err := s.\n            Where(\"created > ? AND (kind = ? OR kind = ?)\", \n            time.Now().Add(time.Hour*24*-1), \n            TokenPasswordReset, TokenAccountDeletion).\n            Delete(&Token{})\n        // ...\n    })\n}\n\n```\n\n**Impact**\nPersistent Account Takeover: An attacker with a single valid token can reset the victim's password an unlimited number of times.\n\nBypass of Remediation: Even if the victim notices suspicious activity and changes their password, the attacker can use the same old token to reset it again immediately.\n\nInfinite Attack Window: Because the cleanup cron is broken, the token effectively has a generic TTL of \"forever,\" allowing exploitation months or years after the token was issued.\n\n**Remediation**\n1. Invalidate Token on Use\nUpdate ResetPassword to delete the specific reset token upon successful completion.\n`// Recommended Fix\nerr = removeTokens(s, user, TokenPasswordReset) // Correct TokenKind`\n2. Fix Cleanup Logic\nUpdate the SQL query in RegisterTokenCleanupCron to target tokens created before the cutoff time.\n`// Recommended Fix\nWhere(\"created < ? ...\", time.Now().Add(time.Hour*24*-1), ...) // Use Less Than (<)`\n\nA fix is available at https://github.com/go-vikunja/vikunja/releases/tag/v2.1.0",
                    "title": "osv - https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/Go%2FGHSA-rfjg-6m84-crj2.json?alt=media"
                },
                {
                    "category": "description",
                    "text": "Vikunja is an open-source self-hosted task management platform. Versions prior to 2.1.0 have a business logic vulnerability exists in the password reset mechanism of vikunja/api that allows password reset tokens to be reused indefinitely. Due to a failure to invalidate tokens upon use and a critical logic bug in the token cleanup cron job, reset tokens remain valid forever. This allows an attacker who intercepts a single reset token (via logs, browser history, or phishing) to perform a complete, persistent account takeover at any point in the future, bypassing standard authentication controls. Version 2.1.0 contains a patch for the issue.",
                    "title": "osv - https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/GIT%2FCVE-2026-28268.json?alt=media"
                },
                {
                    "category": "description",
                    "text": "Vikunja Vulnerable to Account Takeover via Password Reset Token Reuse in code.vikunja.io/api",
                    "title": "osv - https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/Go%2FGO-2026-4575.json?alt=media"
                },
                {
                    "category": "description",
                    "text": "**Summary**\nA critical business logic vulnerability exists in the password reset mechanism of vikunja/api that allows password reset tokens to be reused indefinitely. Due to a failure to invalidate tokens upon use and a critical logic bug in the token cleanup cron job, reset tokens remain valid forever.\n\nThis allows an attacker who intercepts a single reset token (via logs, browser history, or phishing) to perform a complete, persistent account takeover at any point in the future, bypassing standard authentication controls.\n\n**Technical Analysis**\nThe vulnerability stems from two distinct logic errors in the pkg/user/ package that confirm the tokens are never removed.\n\n1. Logic Error in Password Reset (No Invalidation)\nIn pkg/user/user_password_reset.go, the ResetPassword function successfully updates the user's password but fails to delete the reset token used to authorize the request. Instead, it attempts to delete a TokenEmailConfirm token, leaving the TokenPasswordReset active.\n\nVulnerable Code: pkg/user/user_password_reset.go (Lines 36-94)\n```\nfunc ResetPassword(s *xorm.Session, reset *PasswordReset) (userID int64, err error) {\n// ... [Validation and User Lookup] ...\n\n// Hash the password\nuser.Password, err = HashPassword(reset.NewPassword)\nif err != nil {\nreturn\n}\n\n// FLAW: Deletes 'TokenEmailConfirm' instead of the current 'TokenPasswordReset'\nerr = removeTokens(s, user, TokenEmailConfirm)\nif err != nil {\nreturn\n}\n\n// ... [Update User Status and Return] ...\n// The reset token is never removed and remains valid in the DB.\n}\n```\n2. Logic Error in Token Cleanup (Inverted Expiry)\nThe background cron job intended to expire old tokens contains an inverted comparison operator. It deletes tokens newer than 24 hours instead of older ones.\n\nVulnerable Code: pkg/user/token.go (Lines 125-151)\n```\nfunc RegisterTokenCleanupCron() {\n// ...\nerr := cron.Schedule(\"0 * * * *\", func() {\n// ...\n// FLAW: \"created > ?\" selects tokens created AFTER 24 hours ago.\n// This deletes NEW valid tokens and keeps OLD expired tokens forever.\ndeleted, err := s.\nWhere(\"created > ? AND (kind = ? OR kind = ?)\",\ntime.Now().Add(time.Hour*24*-1),\nTokenPasswordReset, TokenAccountDeletion).\nDelete(&Token{})\n// ...\n})\n}\n\n```\n\n**Impact**\nPersistent Account Takeover: An attacker with a single valid token can reset the victim's password an unlimited number of times.\n\nBypass of Remediation: Even if the victim notices suspicious activity and changes their password, the attacker can use the same old token to reset it again immediately.\n\nInfinite Attack Window: Because the cleanup cron is broken, the token effectively has a generic TTL of \"forever,\" allowing exploitation months or years after the token was issued.\n\n**Remediation**\n1. Invalidate Token on Use\nUpdate ResetPassword to delete the specific reset token upon successful completion.\n`// Recommended Fix\nerr = removeTokens(s, user, TokenPasswordReset) // Correct TokenKind`\n2. Fix Cleanup Logic\nUpdate the SQL query in RegisterTokenCleanupCron to target tokens created before the cutoff time.\n`// Recommended Fix\nWhere(\"created < ? ...\", time.Now().Add(time.Hour*24*-1), ...) // Use Less Than (<)`\n\nA fix is available at https://github.com/go-vikunja/vikunja/releases/tag/v2.1.0",
                    "title": "gitlab - https://gitlab.com/api/v4/projects/25847700/repository/files/go%2Fcode.vikunja.io%2Fapi%2FCVE-2026-28268.yml/raw"
                },
                {
                    "category": "other",
                    "text": "0.00036",
                    "title": "EPSS"
                },
                {
                    "category": "other",
                    "text": "4.8",
                    "title": "NCSC Score"
                },
                {
                    "category": "other",
                    "text": "Is related to CWE-640 (Weak Password Recovery Mechanism for Forgotten Password), There is product data available from a private source, There is cvss data available from a private source",
                    "title": "NCSC Score top increasing factors"
                },
                {
                    "category": "other",
                    "text": "The value of the most recent EPSS score, Is related to (a version of) an uncommon product, The value of the most recent CVSS (V3) score",
                    "title": "NCSC Score top decreasing factors"
                }
            ],
            "product_status": {
                "known_affected": [
                    "CSAFPID-5736391",
                    "CSAFPID-5597060",
                    "CSAFPID-5602633",
                    "CSAFPID-5602634",
                    "CSAFPID-5602635",
                    "CSAFPID-5602636",
                    "CSAFPID-5602637",
                    "CSAFPID-5602638",
                    "CSAFPID-5602639",
                    "CSAFPID-5602640",
                    "CSAFPID-5602641",
                    "CSAFPID-5602642",
                    "CSAFPID-5602643",
                    "CSAFPID-5602644",
                    "CSAFPID-5602645",
                    "CSAFPID-5602646",
                    "CSAFPID-5602647",
                    "CSAFPID-5602648",
                    "CSAFPID-5602649",
                    "CSAFPID-5602650",
                    "CSAFPID-5602651",
                    "CSAFPID-5602652",
                    "CSAFPID-5602653",
                    "CSAFPID-5602654",
                    "CSAFPID-5602655",
                    "CSAFPID-5602656",
                    "CSAFPID-5602657",
                    "CSAFPID-5602658",
                    "CSAFPID-5602659",
                    "CSAFPID-5602660",
                    "CSAFPID-5602661",
                    "CSAFPID-5602662",
                    "CSAFPID-5602663",
                    "CSAFPID-5602664",
                    "CSAFPID-5602665",
                    "CSAFPID-5602666",
                    "CSAFPID-5602667",
                    "CSAFPID-5602668",
                    "CSAFPID-5602669",
                    "CSAFPID-5602670",
                    "CSAFPID-5602671",
                    "CSAFPID-5602672",
                    "CSAFPID-5602673",
                    "CSAFPID-5727729",
                    "CSAFPID-5749620",
                    "CSAFPID-5767454",
                    "CSAFPID-5847612"
                ]
            },
            "references": [
                {
                    "category": "external",
                    "summary": "Source - cveprojectv5",
                    "url": "https://www.cve.org/CVERecord?id=CVE-2026-28268"
                },
                {
                    "category": "external",
                    "summary": "Source raw - cveprojectv5",
                    "url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/28xxx/CVE-2026-28268.json"
                },
                {
                    "category": "external",
                    "summary": "Source - nvd",
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-28268"
                },
                {
                    "category": "external",
                    "summary": "Source raw - nvd",
                    "url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-28268"
                },
                {
                    "category": "external",
                    "summary": "Source - github",
                    "url": "https://github.com/advisories/GHSA-rfjg-6m84-crj2"
                },
                {
                    "category": "external",
                    "summary": "Source raw - github",
                    "url": "https://api.github.com/advisories/GHSA-rfjg-6m84-crj2"
                },
                {
                    "category": "external",
                    "summary": "Source - osv",
                    "url": "https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/Go%2FGHSA-rfjg-6m84-crj2.json?alt=media"
                },
                {
                    "category": "external",
                    "summary": "Source - osv",
                    "url": "https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/GIT%2FCVE-2026-28268.json?alt=media"
                },
                {
                    "category": "external",
                    "summary": "Source - first",
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-28268"
                },
                {
                    "category": "external",
                    "summary": "Source raw - first",
                    "url": "https://api.first.org/data/v1/epss?limit=10000&offset=0"
                },
                {
                    "category": "external",
                    "summary": "Source - first",
                    "url": "https://api.first.org/data/v1/epss?limit=10000&offset=0"
                },
                {
                    "category": "external",
                    "summary": "Source - osv",
                    "url": "https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/Go%2FGO-2026-4575.json?alt=media"
                },
                {
                    "category": "external",
                    "summary": "Source - gitlab",
                    "url": "https://gitlab.com/api/v4/projects/25847700/repository/files/go%2Fcode.vikunja.io%2Fapi%2FCVE-2026-28268.yml/raw"
                },
                {
                    "category": "external",
                    "summary": "Reference - cveprojectv5; github; gitlab; nvd; osv",
                    "url": "https://github.com/go-vikunja/vikunja/security/advisories/GHSA-rfjg-6m84-crj2"
                },
                {
                    "category": "external",
                    "summary": "Reference - cveprojectv5; github; gitlab; nvd; osv",
                    "url": "https://github.com/go-vikunja/vikunja/commit/5c2195f9fca9ad208477e865e6009c37889f87b2"
                },
                {
                    "category": "external",
                    "summary": "Reference - cveprojectv5; github; gitlab; nvd; osv",
                    "url": "https://vikunja.io/changelog/vikunja-v2.1.0-was-released"
                },
                {
                    "category": "external",
                    "summary": "Reference - github; gitlab; osv",
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-28268"
                },
                {
                    "category": "external",
                    "summary": "Reference - github; gitlab",
                    "url": "https://github.com/advisories/GHSA-rfjg-6m84-crj2"
                },
                {
                    "category": "external",
                    "summary": "Reference - osv",
                    "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/28xxx/CVE-2026-28268.json"
                },
                {
                    "category": "external",
                    "summary": "Reference - gitlab",
                    "url": "https://github.com/go-vikunja/vikunja"
                }
            ],
            "scores": [
                {
                    "cvss_v3": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 9.8,
                        "baseSeverity": "CRITICAL"
                    },
                    "products": [
                        "CSAFPID-5597060",
                        "CSAFPID-5602633",
                        "CSAFPID-5602634",
                        "CSAFPID-5602635",
                        "CSAFPID-5602636",
                        "CSAFPID-5602637",
                        "CSAFPID-5602638",
                        "CSAFPID-5602639",
                        "CSAFPID-5602640",
                        "CSAFPID-5602641",
                        "CSAFPID-5602642",
                        "CSAFPID-5602643",
                        "CSAFPID-5602644",
                        "CSAFPID-5602645",
                        "CSAFPID-5602646",
                        "CSAFPID-5602647",
                        "CSAFPID-5602648",
                        "CSAFPID-5602649",
                        "CSAFPID-5602650",
                        "CSAFPID-5602651",
                        "CSAFPID-5602652",
                        "CSAFPID-5602653",
                        "CSAFPID-5602654",
                        "CSAFPID-5602655",
                        "CSAFPID-5602656",
                        "CSAFPID-5602657",
                        "CSAFPID-5602658",
                        "CSAFPID-5602659",
                        "CSAFPID-5602660",
                        "CSAFPID-5602661",
                        "CSAFPID-5602662",
                        "CSAFPID-5602663",
                        "CSAFPID-5602664",
                        "CSAFPID-5602665",
                        "CSAFPID-5602666",
                        "CSAFPID-5602667",
                        "CSAFPID-5602668",
                        "CSAFPID-5602669",
                        "CSAFPID-5602670",
                        "CSAFPID-5602671",
                        "CSAFPID-5602672",
                        "CSAFPID-5602673",
                        "CSAFPID-5727729",
                        "CSAFPID-5736391",
                        "CSAFPID-5749620",
                        "CSAFPID-5767454",
                        "CSAFPID-5847612"
                    ]
                }
            ],
            "title": "CVE-2026-28268"
        }
    ]
}