CVE-2026-138256 in Apprise
Summary
by MITRE • 11/28/2026
Apprise before 1.12.0 contains an improper certificate validation vulnerability in NotifyEmail.send that ignores verify_certificate for SMTPS and STARTTLS connections. Network-positioned attackers can present self-signed or mismatched certificates to intercept SMTP AUTH credentials and notification contents, or modify and suppress notifications.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Analysis
by VulDB Data Team • 11/28/2026
The Apprise library prior to version 1.12.0 contains a critical security flaw related to improper certificate validation within the NotifyEmail.send method. This vulnerability specifically affects connections established using either SMTPS (SMTP over SSL/TLS) or STARTTLS protocols, which are standard mechanisms for securing email transmission against eavesdropping and tampering. The core technical issue lies in how the library handles the verify_certificate configuration parameter. Instead of strictly enforcing certificate validation when this flag is intended to be active, the implementation fails to properly validate the server's presented X.509 certificates during the TLS handshake process. This oversight means that even if a user has explicitly configured their application to require valid certificates, the underlying connection logic proceeds without verifying the authenticity or integrity of the remote SMTP server's identity.
This technical deficiency creates a significant attack surface for network-positioned adversaries who can perform man-in-the-middle attacks against email traffic. By intercepting the communication channel between the Apprise client and the mail relay, an attacker can present self-signed certificates or certificates with mismatched Common Names without triggering any validation errors within the application logic. Because the library does not rigorously check if the certificate is signed by a trusted Certificate Authority or matches the expected hostname, it accepts these fraudulent credentials as legitimate. This failure to enforce strict identity verification allows attackers to establish encrypted tunnels that appear secure but are actually under their control, effectively bypassing the intended security controls provided by TLS encryption.
The operational impact of this vulnerability is severe, primarily centering on confidentiality and integrity violations during email notification delivery. Attackers leveraging this flaw can intercept SMTP AUTH credentials, which may include usernames and passwords used to authenticate with mail servers, potentially leading to further account compromise or unauthorized access to other services if credential reuse occurs. Furthermore, the attacker gains the ability to modify notification contents in transit, altering messages before they reach their intended recipients, or suppress notifications entirely by dropping packets within the encrypted tunnel. This undermines the reliability of alerting systems that rely on Apprise for critical security warnings, system status updates, or operational alerts, potentially leading to delayed incident response or missed critical events due to suppressed communications.
From a classification perspective, this vulnerability aligns with CWE-295 Improper Certificate Validation and CWE-319 Cleartext Transmission of Authentication Information in an Encrypted Channel. In the context of the MITRE ATT&CK framework, this flaw facilitates techniques associated with Intercepting Unencrypted Traffic (T1048) and Credential Access via Network Sniffing (T1056), although it specifically exploits a failure to secure traffic that was intended to be encrypted. The vulnerability highlights the importance of strict adherence to TLS best practices where certificate validation is not optional but mandatory for any connection claiming security through encryption protocols like STARTTLS or SMTPS.
To mitigate this risk, organizations using Apprise must upgrade immediately to version 1.12.0 or later, where the verify_certificate logic has been corrected to properly enforce certificate chain verification and hostname matching. Until an update is applied, administrators should consider implementing network-level controls such as firewall rules that restrict SMTP traffic to known, trusted IP addresses only, thereby reducing the likelihood of a man-in-the-middle attack succeeding regardless of application-layer validation failures. Additionally, deploying email security gateways with strict TLS inspection policies can provide an additional layer of defense by validating certificates at the infrastructure level rather than relying solely on client-side library behavior. Regular audits of third-party dependencies and their configuration settings are essential to ensure that security parameters like certificate verification remain enabled and correctly implemented across all components handling sensitive communications.