{
    "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-34828",
        "tracking": {
            "current_release_date": "2026-04-03T17:38:36.998192Z",
            "generator": {
                "date": "2026-02-17T15:00:00Z",
                "engine": {
                    "name": "V.E.L.M.A",
                    "version": "1.7"
                }
            },
            "id": "CVE-2026-34828",
            "initial_release_date": "2026-04-02T00:43:57.643101Z",
            "revision_history": [
                {
                    "date": "2026-04-02T00:43:57.643101Z",
                    "number": "1",
                    "summary": "CVE created.| Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| References created (2).| CWES updated (1)."
                },
                {
                    "date": "2026-04-02T00:43:59.428415Z",
                    "number": "2",
                    "summary": "NCSC Score created."
                },
                {
                    "date": "2026-04-02T18:27:40.711902Z",
                    "number": "3",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| References created (3).| CWES updated (1)."
                },
                {
                    "date": "2026-04-02T18:27:42.405623Z",
                    "number": "4",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-04-02T18:48:07.373219Z",
                    "number": "5",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| Products connected (1).| References created (3).| CWES updated (1)."
                },
                {
                    "date": "2026-04-02T18:48:09.093782Z",
                    "number": "6",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-04-03T15:30:48.947820Z",
                    "number": "7",
                    "summary": "Source connected.| CVE status created. (valid)| EPSS created."
                },
                {
                    "date": "2026-04-03T17:38:35.031491Z",
                    "number": "8",
                    "summary": "Unknown change."
                }
            ],
            "status": "interim",
            "version": "8"
        }
    },
    "product_tree": {
        "branches": [
            {
                "branches": [
                    {
                        "branches": [
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/>=4.1.0|<6.1.0",
                                "product": {
                                    "name": "vers:unknown/>=4.1.0|<6.1.0",
                                    "product_id": "CSAFPID-5985238"
                                }
                            }
                        ],
                        "category": "product_name",
                        "name": "listmonk"
                    }
                ],
                "category": "vendor",
                "name": "knadh"
            }
        ]
    },
    "vulnerabilities": [
        {
            "cve": "CVE-2026-34828",
            "cwe": {
                "id": "CWE-613",
                "name": "Insufficient Session Expiration"
            },
            "notes": [
                {
                    "category": "description",
                    "text": "### Summary\nA session management vulnerability allows previously issued authenticated sessions to remain valid after sensitive account security changes, specifically password reset and password change. As a result, an attacker who has already obtained a valid session cookie can retain access to the account even after the victim changes or resets their password.\n\nThis weakens account recovery and session security guarantees. I reproduced the issue on listmonk v6.0.0.\n\n### Details\nThe application updates account credentials successfully, but existing active sessions are not revoked afterward.\n\nThis behavior was confirmed in two flows:\n\n1. **Password reset flow**\n   - A user resets their password through the forgot/reset flow.\n   - The old password becomes invalid.\n   - The new password works.\n   - However, a session cookie issued **before** the reset remains valid and continues to authenticate successfully.\n\n2. **Authenticated password change flow**\n   - The same user logs in from two separate sessions.\n   - Using session A, the password is changed through the authenticated profile endpoint.\n   - The old password becomes invalid.\n   - The new password works.\n   - However, session B, issued before the password change, remains valid and continues to authenticate successfully.\n\nFrom the source review, the reset flow consumes the reset token, updates the password, and creates a fresh session, but there does not appear to be any revocation of older sessions. The same applies to the profile password change flow.\n\nRelevant code areas observed during review:\n- `cmd/auth.go` — forgot/reset flow\n- `cmd/users.go` — authenticated profile update flow\n- `internal/core/users.go` — password update path\n\nAdditionally:\n- It was verified that reset links are single-use.\n- It was verified that password reset on a TOTP-enabled account still enforces TOTP on fresh login.\n- However, already-issued sessions still remain valid after reset.\n\n### PoC\n#### Case 1: Password reset does not revoke existing session\n\n1. Create or use a normal user account.\n2. Log in as that user and save the authenticated session cookie.\n3. Trigger forgot-password for the account.\n4. Use the emailed reset link and set a new password.\n5. Verify:\n   - the old password no longer works\n   - the new password works\n6. Replay the **old pre-reset session cookie** against an authenticated endpoint such as `/api/profile`.\n\nExample validation request:\n```http\nGET /api/profile HTTP/1.1\nHost: 127.0.0.1:9000\nCookie: session=<old_pre_reset_session>\n```\n\nObserved result:\n\nServer returns `HTTP/1.1 200 OK`\nResponse contains the authenticated user profile\n\n#### Case 2: Password change does not revoke other active sessions\n\n1. Log in twice as the same user and save two authenticated session cookies:\n   - session A\n   - session B\n\n2. Using session A, change the password through the authenticated profile update endpoint.\n\n3. Verify:\n   - the old password no longer works\n   - the new password works\n\n4. Replay session B against an authenticated endpoint such as `/api/profile`.\n\nExample password change request:\n```http\nPUT /api/profile HTTP/1.1\nHost: 127.0.0.1:9000\nCookie: session=<session_A>\nContent-Type: application/json\n\n{\n  \"name\":\"victim1\",\n  \"email\":\"victim1@test.local\",\n  \"password\":\"VictimChanged123\"\n}\n```\n\nThen validate session B:\n```http\nGET /api/profile HTTP/1.1\nHost: 127.0.0.1:9000\nCookie: session=<session_B>\n```\n\nObserved result:\n- Server returns `HTTP/1.1 200 OK`\n- Response contains the authenticated user profile\n\n## Impact\n\nThis issue allows persistence of unauthorized access after credential recovery actions.\n\nIf an attacker has already stolen a valid session cookie through any means (for example malware, browser compromise, XSS, shared machine access, proxy leakage, or other session theft), the victim cannot fully recover the account by changing or resetting the password alone. The attacker’s existing session remains valid.\n\nThis impacts account recovery expectations and session security for all authenticated users, including users with TOTP enabled.\n\n## Attachment\n[listmonk-session-report.zip](https://github.com/user-attachments/files/25975979/listmonk-session-report.zip)",
                    "title": "github - https://api.github.com/advisories/GHSA-h5j9-cvrw-v5qh"
                },
                {
                    "category": "description",
                    "text": "listmonk is a standalone, self-hosted, newsletter and mailing list manager. From version 4.1.0 to before version 6.1.0, a session management vulnerability allows previously issued authenticated sessions to remain valid after sensitive account security changes, specifically password reset and password change. As a result, an attacker who has already obtained a valid session cookie can retain access to the account even after the victim changes or resets their password. This weakens account recovery and session security guarantees. This issue has been patched in version 6.1.0.",
                    "title": "nvd - https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-34828"
                },
                {
                    "category": "description",
                    "text": "listmonk is a standalone, self-hosted, newsletter and mailing list manager. From version 4.1.0 to before version 6.1.0, a session management vulnerability allows previously issued authenticated sessions to remain valid after sensitive account security changes, specifically password reset and password change. As a result, an attacker who has already obtained a valid session cookie can retain access to the account even after the victim changes or resets their password. This weakens account recovery and session security guarantees. This issue has been patched in version 6.1.0.",
                    "title": "cveprojectv5 - https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/34xxx/CVE-2026-34828.json"
                },
                {
                    "category": "other",
                    "text": "0.0001",
                    "title": "EPSS"
                },
                {
                    "category": "other",
                    "text": "4.0",
                    "title": "NCSC Score"
                },
                {
                    "category": "other",
                    "text": "There is cwe data available from source Nvd",
                    "title": "NCSC Score top decreasing factors"
                }
            ],
            "product_status": {
                "known_affected": [
                    "CSAFPID-5985238"
                ]
            },
            "references": [
                {
                    "category": "external",
                    "summary": "Source - github",
                    "url": "https://api.github.com/advisories/GHSA-h5j9-cvrw-v5qh"
                },
                {
                    "category": "external",
                    "summary": "Source - nvd",
                    "url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-34828"
                },
                {
                    "category": "external",
                    "summary": "Source - cveprojectv5",
                    "url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/34xxx/CVE-2026-34828.json"
                },
                {
                    "category": "external",
                    "summary": "Source - first",
                    "url": "https://api.first.org/data/v1/epss?limit=10000&offset=0"
                },
                {
                    "category": "external",
                    "summary": "Reference - cveprojectv5; github; nvd",
                    "url": "https://github.com/knadh/listmonk/security/advisories/GHSA-h5j9-cvrw-v5qh"
                },
                {
                    "category": "external",
                    "summary": "Reference - github",
                    "url": "https://github.com/advisories/GHSA-h5j9-cvrw-v5qh"
                },
                {
                    "category": "external",
                    "summary": "Reference - cveprojectv5; nvd",
                    "url": "https://github.com/knadh/listmonk/commit/db82035d619348949512dafdaf60c86037cafc9e"
                },
                {
                    "category": "external",
                    "summary": "Reference - cveprojectv5; nvd",
                    "url": "https://github.com/knadh/listmonk/releases/tag/v6.1.0"
                }
            ],
            "scores": [
                {
                    "cvss_v3": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N",
                        "baseScore": 7.1,
                        "baseSeverity": "HIGH"
                    },
                    "products": [
                        "CSAFPID-5985238"
                    ]
                }
            ],
            "title": "CVE-2026-34828"
        }
    ]
}