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.
Published: 2026-08-05
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

History

Mon, 10 Aug 2026 12:00:00 +0000

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.

Mon, 10 Aug 2026 11:30:00 +0000

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

Fri, 07 Aug 2026 11:45:00 +0000

Type Values Removed Values Added
First Time appeared Paperless-ngx
Paperless-ngx paperless-ngx
Vendors & Products Paperless-ngx
Paperless-ngx paperless-ngx

Wed, 05 Aug 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 05 Aug 2026 13:15:00 +0000

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'}


Wed, 05 Aug 2026 11:15:00 +0000

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'}


Subscriptions

Paperless-ngx Paperless-ngx
cve-icon MITRE

Status: PUBLISHED

Assigner: TuranSec

Published:

Updated: 2026-08-10T11:45:54.690Z

Reserved: 2026-08-05T10:53:53.176Z

Link: CVE-2026-71244

cve-icon Vulnrichment

Updated: 2026-08-05T12:49:41.417Z

cve-icon NVD

Status : Deferred

Published: 2026-08-05T11:16:27.367

Modified: 2026-08-26T17:13:24.800

Link: CVE-2026-71244

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-10T22:30:06Z

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)