The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-35391

CVE-2026-35391: Bulwarkmail Webmail Auth Bypass Flaw

CVE-2026-35391 is an authentication bypass vulnerability in Bulwarkmail Webmail that allows attackers to forge IP addresses and bypass rate limiting. This article covers the technical details, affected versions, and mitigation.

Published: April 10, 2026

CVE-2026-35391 Overview

CVE-2026-35391 is a high-severity vulnerability affecting Bulwark Webmail, a self-hosted webmail client for Stalwart Mail Server. Prior to version 1.4.11, the getClientIP() function in lib/admin/session.ts trusted the first (leftmost) entry of the X-Forwarded-For header, which is fully controlled by the client. This allows an attacker to forge their source IP address to bypass IP-based rate limiting (enabling brute-force attacks against the admin login) or forge audit log entries, making malicious activity appear to originate from arbitrary IP addresses.

Critical Impact

Attackers can bypass IP-based security controls including rate limiting and audit logging, enabling undetected brute-force attacks against admin credentials and forensic evasion through log manipulation.

Affected Products

  • Bulwarkmail Webmail versions prior to 1.4.11
  • Self-hosted deployments using Stalwart Mail Server with Bulwark Webmail
  • Environments relying on IP-based rate limiting for admin login protection

Discovery Timeline

  • 2026-04-06 - CVE-2026-35391 published to NVD
  • 2026-04-09 - Last updated in NVD database

Technical Details for CVE-2026-35391

Vulnerability Analysis

This vulnerability stems from improper validation of client-supplied header data (CWE-348: Use of Less Trusted Source). The getClientIP() function in lib/admin/session.ts parses the X-Forwarded-For HTTP header and trusts the first (leftmost) IP address entry without proper verification. In a properly configured reverse proxy environment, the rightmost entry typically contains the original client IP, while intermediate proxy addresses are appended. By trusting the leftmost entry, the application allows clients to inject arbitrary IP addresses that the server treats as authentic.

The X-Forwarded-For header is a de facto standard header for identifying the originating IP address of a client connecting through an HTTP proxy or load balancer. However, since this header can be arbitrarily set by the client before reaching any proxy, trusting client-controlled portions of this header introduces significant security risks.

Root Cause

The root cause is the improper trust placement in HTTP header parsing within the getClientIP() function. The function reads the X-Forwarded-For header and extracts the first comma-separated value without considering that this value is entirely client-controlled. Properly secured implementations should either use the rightmost untrusted address (when the proxy chain is known) or use a separate, proxy-set header that cannot be spoofed by clients.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by including a forged X-Forwarded-For header in their HTTP requests to the Bulwark Webmail application. This enables two primary attack scenarios:

  1. Rate Limit Bypass: By rotating the spoofed IP address in each request, an attacker can circumvent IP-based rate limiting mechanisms designed to prevent brute-force attacks against the admin login interface.

  2. Audit Log Manipulation: Malicious activities can be attributed to arbitrary IP addresses in audit logs, complicating forensic investigations and potentially implicating innocent parties.

The vulnerability is exploited by crafting HTTP requests with a malicious X-Forwarded-For header containing a spoofed IP address before the actual client IP. See the GitHub Security Advisory for complete technical details.

Detection Methods for CVE-2026-35391

Indicators of Compromise

  • Audit logs showing login attempts or administrative actions from unexpected or impossible IP addresses (e.g., internal/reserved IP ranges from external sources)
  • Unusual patterns in X-Forwarded-For header values in web server access logs
  • High volumes of failed admin login attempts that don't trigger rate limiting alerts
  • IP addresses in logs that don't correlate with known user locations or access patterns

Detection Strategies

  • Implement web application firewall (WAF) rules to flag requests with suspicious X-Forwarded-For header patterns
  • Monitor for unusually high numbers of unique source IPs accessing the admin login endpoint in short time periods
  • Correlate web server logs with reverse proxy logs to identify X-Forwarded-For header manipulation
  • Deploy SentinelOne Singularity to detect anomalous authentication patterns and potential brute-force activity

Monitoring Recommendations

  • Enable verbose logging on reverse proxies to capture original client IPs before header manipulation
  • Set up alerts for admin login attempts from IP ranges that should not have access
  • Monitor authentication failure rates independent of reported client IP addresses
  • Review audit logs for inconsistencies between reported IPs and expected geographic access patterns

How to Mitigate CVE-2026-35391

Immediate Actions Required

  • Upgrade Bulwark Webmail to version 1.4.11 or later immediately
  • Review audit logs for signs of exploitation, particularly anomalous IP addresses during the exposure window
  • Implement network-level rate limiting at the reverse proxy or load balancer layer as a defense-in-depth measure
  • Consider temporarily restricting admin login access to known IP ranges until patching is complete

Patch Information

The vulnerability has been addressed in Bulwark Webmail version 1.4.11. The fix ensures proper handling of the X-Forwarded-For header to prevent client-side IP address spoofing. Organizations should upgrade to this version or later to remediate the vulnerability. Detailed information is available in the GitHub Security Advisory.

Workarounds

  • Configure the reverse proxy to strip or overwrite the X-Forwarded-For header before passing requests to Bulwark Webmail
  • Implement additional rate limiting at the network infrastructure level (firewall, load balancer) that doesn't rely on application-parsed headers
  • Deploy IP allowlisting for admin panel access at the reverse proxy or network layer
  • Use alternative authentication mechanisms such as multi-factor authentication to reduce the impact of potential brute-force attacks
bash
# Example nginx configuration to properly set X-Forwarded-For
# Add to your nginx proxy configuration
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Real-IP $remote_addr;

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechBulwarkmail

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-348
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-35389: Bulwarkmail Webmail Disclosure Flaw

  • CVE-2026-35390: Bulwarkmail Webmail XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English