Skip to main content

Python CVE-2026-34752

HIGH
Uncaught Exception (CWE-248)
2026-04-01 https://github.com/haraka/Haraka GHSA-xph3-r2jf-4vp3
8.7
CVSS 4.0 · Vendor: https://github.com/haraka/Haraka
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft email with __proto__ header
  2. Exploit
    Parser stores header in plain object
  3. Execution
    Prototype pollution accesses Object.prototype
  4. Impact
    Worker process crashes from undefined method call

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Exception handling completeness
Exploitation Conditions

Remote unauthenticated attacker sends email with __proto__: as header name to Haraka mail server. No victim interaction required. Crashes the worker process in default configurations of Haraka.

Impact

Real-world risk is MODERATE to HIGH for internet-facing Haraka deployments. Attack vector is NETWORK-accessible via standard SMTP protocol (typically port 25, 587, or 2525), requires NO authentication (any remote user can send email), and has LOW complexity (demonstrated by 10-line Python PoC). The technical impact is availability loss rather than data breach or code execution, limiting CVSS severity, but operational impact is significant: email infrastructure downtime directly disrupts business operations. EPSS data not available for this recent CVE, but exploitation is trivially automatable-attackers could continuously send malformed emails to sustain denial of service. No confirmed active exploitation (not in CISA KEV), but the public GitHub advisory includes working exploit code, lowering the barrier to weaponization. SSVC assessment: exploitable via simple SMTP transaction, fully automatable, impact limited to availability. Organizations using Haraka in production should prioritize patching, especially single-process deployments where impact is total service failure rather than session disruption.

Exploit ScenarioDerived

An attacker identifies an internet-facing Haraka mail server and establishes a standard SMTP connection on port 25 or 587 without authentication. Using the provided Python proof-of-concept or equivalent tooling, the attacker sends a crafted email with __proto__: crash in the header section during the DATA phase of the SMTP transaction. The malformed header triggers the prototype pollution condition, crashing the worker process handling the connection. In a sustained attack, the adversary repeatedly sends these malformed emails every few seconds, forcing continuous worker restarts in cluster mode or complete service outage in single-process mode, effectively denying email service to legitimate users and disrupting organizational communications.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 01, 2026

Haraka email server crashes when processing emails with __proto__ as a header name, enabling remote unauthenticated denial of service. Attackers can send a specially crafted email via SMTP to crash worker processes, disrupting email delivery. In single-process deployments, the entire server becomes unavailable; in cluster mode, all active sessions are terminated. No public exploit identified at time of analysis beyond the published proof-of-concept code, though exploitation requires only basic SMTP access.

RemediationAI

Upgrade to the patched version of Haraka as specified in the vendor advisory at https://github.com/haraka/Haraka/security/advisories/GHSA-xph3-r2jf-4vp3 (exact patched version number not provided in available data; consult advisory for specific release). The fix likely involves either using Object.create(null) for header storage to eliminate prototype chain inheritance, implementing input validation to reject reserved property names like __proto__, constructor, and prototype, or migrating to Map data structures for header storage. As a temporary workaround until patching, deploy network-level filtering to inspect and reject SMTP DATA commands containing headers matching the pattern __proto__: or other prototype pollution vectors, though this is not foolproof and patching remains the primary mitigation. For critical deployments, consider running Haraka in cluster mode (nodes>0) to limit blast radius to individual worker processes rather than total service failure, though this does not eliminate the vulnerability.

Affected Packages

npm haraka fix: 3.1.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This vulnerability affects Haraka, a Node.js-based SMTP server (pkg:npm/haraka). The root cause is prototype pollution (CWE-248) in the haraka-email-message library's header parser. The parser stores email headers in a plain JavaScript object using bracket notation without Object.create(null) or Map, allowing access to inherited properties. When a header named __proto__ is encountered, the code attempts to access this.headers['__proto__'], which returns Object.prototype instead of undefined. The nullish coalescing operator (??=) skips initialization because Object.prototype is truthy, then the code attempts to call push() on Object.prototype, triggering an uncaught TypeError. The global uncaughtException handler responds by calling process.exit(1), terminating the worker process. This represents a classic example of JavaScript prototype chain exploitation where special property names bypass object initialization logic.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/haraka/Haraka) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/haraka/Haraka) · only source for this CVE.

CVSS VectorVendor: https://github.com/haraka/Haraka

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch released
Apr 02, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 01, 2026 - 22:56 nvd
HIGH 8.7

DescriptionCVE.org

Summary

Sending an email with __proto__: as a header name crashes the Haraka worker process.

Details

The header parser at node_modules/haraka-email-message/lib/header.js:215-218 stores headers in a plain {} object:

javascript
_add_header(key, value, method) {
    this.headers[key] ??= []          // line 216
    this.headers[key][method](value)  // line 217
}

When key is __proto__:

  1. this.headers['__proto__'] returns Object.prototype (the prototype getter)
  2. Object.prototype is not null/undefined, so ??= is skipped
  3. Object.prototype.push(value) throws TypeError: not a function

The TypeError reaches the global uncaughtException handler at haraka.js:26-33, which calls process.exit(1):

js
process.on('uncaughtException', (err) => {
    if (err.stack) {
        err.stack.split('\n').forEach((line) => logger.crit(line))
    } else {
        logger.crit(`Caught exception: ${JSON.stringify(err)}`)
    }
    logger.dump_and_exit(1)
})

PoC

python
import socket, time

sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.settimeout(5)
sock.connect(("127.0.0.1", 2525))
sock.recv(4096)
sock.sendall(b"EHLO evil\r\n"); sock.recv(4096)
sock.sendall(b"MAIL FROM:<x@x.com>\r\n"); sock.recv(4096)
sock.sendall(b"RCPT TO:<user@haraka.local>\r\n"); sock.recv(4096)
sock.sendall(b"DATA\r\n"); sock.recv(4096)
# Crash payload
sock.sendall(b"From: x@x.com\r\n__proto__: crash\r\n\r\nbody\r\n.\r\n")

Impact

In single-process mode (nodes=0), the entire server goes down. In cluster mode, the master restarts the worker, but all sessions are lost.

Executive ViewAI

Why It Matters

Haraka email servers are vulnerable to remote denial of service attacks via specially crafted SMTP emails that crash worker processes and disrupt email delivery. Organizations running Haraka-particularly in single-process deployments-face immediate risk of complete email service interruption from unauthenticated attackers requiring only basic network access to your mail server. This vulnerability directly impacts business continuity for any organization dependent on Haraka for email operations.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict SMTP listener access via firewall to trusted IP ranges only; (2) Deploy SMTP gateway with content filtering rules to block emails containing __proto__ in header fields; (3) Configure monitoring/alerting on worker process restarts and email queue delays; (4) In cluster deployments, increase worker process redundancy to tolerate individual process crashes; (5) Implement rate limiting on inbound SMTP connections; (6) Maintain detailed email queue backups to enable recovery after crashes.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

pkg:npm/haraka

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy