CVE-2026-71244

Paperless-ngx - Mail Account Test Connection Leaks Stored IMAP/OAuth Credentials to Attacker-Controlled Host

Published Aug 5, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
Paperless-ngx's MailAccountViewSet.test action, when called with an existing account's ID and a masked password field, reuses the stored password, account_type, refresh_token, and expiration from that existing account while allowing the caller to supply a different imap_server, imap_port, and imap_security in the same request.

Analysis

AI-generated

Technical impact

Paperless-ngx’s MailAccountViewSet.test action, when invoked with a stored account ID and a masked password field, reuses the account’s stored password, account type, refresh token, and expiration while allowing the caller to override the IMAP server, port and security settings. As a result, the application connects to an attacker‑specified IMAP endpoint using those authentic credentials, leaking the IMAP or OAuth credentials to the chosen host.

Affected Systems

All installed instances of paperless‑ngx that expose the MailAccountViewSet.test() API endpoint are susceptible. No specific product version is identified, so the issue applies to every release that maintains the current implementation.

Risk and Exploitability

With a CVSS score of 6.5 and an EPSS score of less than 1%, the vulnerability represents a moderate severity risk that is unlikely to be widely exploited but still poses a serious concern. The key risk is the disclosure of stored IMAP/OAuth credentials, which could enable an attacker to impersonate the legitimate user on the mail system or leverage those credentials against other services. The likely attack vector is a remote API call to the test endpoint by an authenticated user capable of invoking the action; no administrative privileges beyond standard API access are required according to the description provided.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update paperless‑ngx to a patched release that fixes the MailAccountViewSet.test credential leak.
  • Limit the use of the test connection feature to trusted or privileged users by adjusting role‑based permissions if the application’s access control can be configured.
  • Configure network controls to restrict outbound connections from the paperless‑ngx application only to known, trusted IMAP servers, blocking arbitrary host addresses.

Generated by OpenCVE AI on August 10, 2026 at 22:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description Paperless-ngx's MailAccountViewSet.test() action, when called with an existing account's ID and a masked password field, reuses the stored password, account_type, refresh_token, and expiration from that existing account while allowing the caller to supply a different imap_server, imap_port, and imap_security in the same request. The test connection then authenticates to the caller-specified server using the real stored credentials. A user holding only object-level change_mailaccount permission on the target account (not full admin) can redirect the test connection to an attacker-controlled IMAP host, causing the real stored IMAP password or OAuth token to be sent to that host. Paperless-ngx's MailAccountViewSet.test action, when called with an existing account's ID and a masked password field, reuses the stored password, account_type, refresh_token, and expiration from that existing account while allowing the caller to supply a different imap_server, imap_port, and imap_security in the same request.
Type Values Removed Values Added
Title Paperless-ngx: Mail Account Test Connection Leaks Stored IMAP/OAuth Credentials to Attacker-Controlled Host Paperless-ngx - Mail Account Test Connection Leaks Stored IMAP/OAuth Credentials to Attacker-Controlled Host
Type Values Removed Values Added
First Time appeared Paperless-ngx
Paperless-ngx paperless-ngx
Vendors & Products Paperless-ngx
Paperless-ngx paperless-ngx
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

Type Values Removed Values Added
Description Paperless-ngx's MailAccountViewSet.test() action, when called with an existing account's ID and a masked password field, reuses the stored password, account_type, refresh_token, and expiration from that existing account while allowing the caller to supply a different imap_server, imap_port, and imap_security in the same request. The test connection then authenticates to the caller-specified server using the real stored credentials. A user holding only object-level change_mailaccount permission on the target account (not full admin) can redirect the test connection to an attacker-controlled IMAP host, causing the real stored IMAP password or OAuth token to be sent to that host.
Title Paperless-ngx: Mail Account Test Connection Leaks Stored IMAP/OAuth Credentials to Attacker-Controlled Host
Weaknesses CWE-918
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)

Sources

Status
PUBLISHED
Assigner
TuranSec
Published
Updated
Aug 10, 2026, 11:45 AM
Reserved
Aug 5, 2026, 10:53 AM
Status
Deferred
Published
Aug 5, 2026, 11:16 AM
Modified
Aug 26, 2026, 5:13 PM