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

Impact

Paperless-ngx’s MailAccountViewSet.test() action allows a caller to request a test connection using an existing account’s stored password, refresh token, and expiration while directing the connection to a host of the caller’s choosing. The action reuses the stored credentials and authenticates to the supplied IMAP server, effectively leaking the IMAP/OAuth credentials to that host. This constitutes an outbound credential disclosure (CWE‑918) that gives an attacker a copy of a user’s private authentication data. The primary impact is the theft of IMAP or OAuth credentials, which an attacker could then use to impersonate the legitimate user on the target mail system or to compromise other services that rely on those credentials. Because the credentials are sent to an external host controlled by the attacker, confidentiality is fully compromised. The attack can be carried out remotely via the API by a user who has object‑level change_mailaccount permission on a target account. No system‑wide privileges or administrative access are required, and the exploit requires only the ability to send the test request and to specify a destination host.

Affected Systems

Paperless‑ngx, all installed instances where the MailAccountViewSet.test() action is available. No specific product versions are listed; the issue applies to every version that retains the current logic.

Risk and Exploitability

The CVSS score of 7.1 indicates a moderate‑to‑high severity vulnerability. With the EPSS score not available, the probability of exploitation is uncertain but the known functionality of the API makes such an attack feasible. The vulnerability is not listed in the CISA KEV catalog, but its straightforward exploitation path and the sensitivity of the data leaked make it a serious concern. The likely attack vector is a remote API call that a possessing user can trigger.

Generated by OpenCVE AI on August 5, 2026 at 12:24 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.
  • Restrict the change_mailaccount permission to privileged users or remove the test connection capability from non-admin roles.
  • Configure the deployment environment to block outbound IMAP connections from the Paperless‑ngx application to arbitrary hosts, allowing only connections to known, trusted IMAP servers.

Generated by OpenCVE AI on August 5, 2026 at 12:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: TuranSec

Published:

Updated: 2026-08-05T12:52:17.842Z

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

Link: CVE-2026-71244

cve-icon Vulnrichment

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

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T12:30:12Z

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)