Skip to content

listmonk's active sessions remain valid after password reset and password change

High severity GitHub Reviewed Published Apr 1, 2026 in knadh/listmonk • Updated Apr 1, 2026

Package

gomod github.com/knadh/listmonk (Go)

Affected versions

>= 1.1.1-0.20241028090858-319053dd7a90, < 1.1.1-0.20260329113754-1b5e8d38c778

Patched versions

1.1.1-0.20260329113754-1b5e8d38c778

Description

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.
  2. 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
  6. Replay the old pre-reset session cookie against an authenticated endpoint such as /api/profile.

Example validation request:

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
  2. Using session A, change the password through the authenticated profile update endpoint.

  3. Verify:

    • the old password no longer works
    • the new password works
  4. Replay session B against an authenticated endpoint such as /api/profile.

Example password change request:

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:

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

References

@knadh knadh published to knadh/listmonk Apr 1, 2026
Published to the GitHub Advisory Database Apr 1, 2026
Reviewed Apr 1, 2026
Last updated Apr 1, 2026

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N

EPSS score

Weaknesses

Insufficient Session Expiration

According to WASC, Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization. Learn more on MITRE.

CVE ID

CVE-2026-34828

GHSA ID

GHSA-h5j9-cvrw-v5qh

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.