Skip to main content

CVE-2026-34828

HIGH
Insufficient Session Expiration (CWE-613)
2026-04-01 https://github.com/knadh/listmonk GHSA-h5j9-cvrw-v5qh
7.1
CVSS 3.1 · GitHub Advisory
Share

Severity by source

GitHub Advisory PRIMARY
7.1 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None

Lifecycle Timeline

3
Patch released
Apr 02, 2026 - 14:30 nvd
Patch available
Analysis Generated
Apr 02, 2026 - 00:15 vuln.today
CVE Published
Apr 01, 2026 - 23:48 nvd
HIGH 7.1

DescriptionGitHub Advisory

Summary

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. I reproduced the issue on listmonk v6.0.0.

Details

The application updates account credentials successfully, but existing active sessions are not revoked afterward.

This behavior was confirmed in two flows:

  1. Password reset flow
  • A user resets their password through the forgot/reset flow.
  • The old password becomes invalid.
  • The new password works.
  • However, a session cookie issued before the reset remains valid and continues to authenticate successfully.
  1. Authenticated password change flow
  • The same user logs in from two separate sessions.
  • Using session A, the password is changed through the authenticated profile endpoint.
  • The old password becomes invalid.
  • The new password works.
  • However, session B, issued before the password change, remains valid and continues to authenticate successfully.

From 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.

Relevant code areas observed during review:

  • cmd/auth.go - forgot/reset flow
  • cmd/users.go - authenticated profile update flow
  • internal/core/users.go - password update path

Additionally:

  • It was verified that reset links are single-use.
  • It was verified that password reset on a TOTP-enabled account still enforces TOTP on fresh login.
  • However, already-issued sessions still remain valid after reset.

PoC

Case 1: Password reset does not revoke existing session
  1. Create or use a normal user account.
  2. Log in as that user and save the authenticated session cookie.
  3. Trigger forgot-password for the account.
  4. Use the emailed reset link and set a new password.
  5. Verify:
  • the old password no longer works
  • the new password works
  1. Replay the old pre-reset session cookie against an authenticated endpoint such as /api/profile.

Example validation request:

http
GET /api/profile HTTP/1.1
Host: 127.0.0.1:9000
Cookie: session=<old_pre_reset_session>

Observed result:

Server returns HTTP/1.1 200 OK Response contains the authenticated user profile

Case 2: Password change does not revoke other active sessions
  1. Log in twice as the same user and save two authenticated session cookies:
  • session A
  • session B
  1. Using session A, change the password through the authenticated profile update endpoint.
  2. Verify:
  • the old password no longer works
  • the new password works
  1. Replay session B against an authenticated endpoint such as /api/profile.

Example password change request:

http
PUT /api/profile HTTP/1.1
Host: 127.0.0.1:9000
Cookie: session=<session_A>
Content-Type: application/json

{
  "name":"victim1",
  "email":"victim1@test.local",
  "password":"VictimChanged123"
}

Then validate session B:

http
GET /api/profile HTTP/1.1
Host: 127.0.0.1:9000
Cookie: session=<session_B>

Observed result:

  • Server returns HTTP/1.1 200 OK
  • Response contains the authenticated user profile

Impact

This issue allows persistence of unauthorized access after credential recovery actions.

If 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.

This impacts account recovery expectations and session security for all authenticated users, including users with TOTP enabled.

Attachment

listmonk-session-report.zip

AnalysisAI

Session fixation in listmonk v6.0.0 allows authenticated sessions to persist after password reset or password change, enabling attackers with stolen session cookies to maintain account access despite credential recovery by the victim. Authenticated remote attackers (PR:L) can exploit this to retain high confidentiality impact access. No public exploit code identified at time of analysis, though the vulnerability is trivially reproducible per the detailed proof-of-concept. EPSS data not available; vulnerability confirmed in production release v6.0.0 via GitHub Security Advisory.

Technical ContextAI

Listmonk is an open-source self-hosted newsletter and mailing list manager written in Go. This vulnerability stems from CWE-613 (Insufficient Session Expiration), a session management flaw in the authentication subsystem. The application's session lifecycle management in cmd/auth.go (password reset flow) and cmd/users.go (authenticated password change flow) fails to implement server-side session revocation when security-sensitive credential updates occur. While password hashes are correctly updated in internal/core/users.go and reset tokens are properly consumed (single-use), the session validation logic does not invalidate existing HTTP session cookies stored in user browsers or attacker-controlled environments. This violates secure session management principles outlined in OWASP Session Management guidance, where credential changes should trigger immediate invalidation of all active sessions except optionally the current session performing the change. The vulnerability affects the Go package github.com/knadh/listmonk as identified by CPE pkg:go/github.com_knadh_listmonk.

RemediationAI

Organizations running listmonk v6.0.0 should immediately check the GitHub Security Advisory at https://github.com/knadh/listmonk/security/advisories/GHSA-h5j9-cvrw-v5qh and the broader advisory listing at https://github.com/advisories/GHSA-h5j9-cvrw-v5qh for vendor-released patches and upgrade instructions. Upstream fix availability not independently confirmed from available data; administrators should monitor the official listmonk repository for release announcements. As an interim mitigation, implement compensating controls including mandatory session timeout policies, monitoring for concurrent sessions from different IP addresses or user agents, and educating users to manually log out from all devices after password changes. Consider deploying additional session security headers (HttpOnly, Secure, SameSite) if not already enforced, though these do not address the core session invalidation gap. For high-security deployments, implement out-of-band session revocation mechanisms such as admin-initiated session termination capabilities or database-level session purging tied to password update triggers. Review application logs for anomalous multi-geography concurrent sessions that could indicate exploitation. If XSS vulnerabilities exist elsewhere in the deployment (per the XSS tag in intelligence), prioritize their remediation concurrently to prevent session theft attack chains.

Share

CVE-2026-34828 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy