A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-39971

CVE-2026-39971: Serendipity SMTP Header Injection Flaw

CVE-2026-39971 is an SMTP header injection flaw in Serendipity weblog engine that allows attackers to manipulate email headers via Host header control. This post covers technical details, affected versions, and mitigation steps.

Published: April 17, 2026

CVE-2026-39971 Overview

Serendipity, a PHP-powered weblog engine, contains an SMTP header injection vulnerability in versions 2.6-beta2 and below. The email sending functionality in include/functions.inc.php inserts $_SERVER['HTTP_HOST'] directly into the Message-ID SMTP header without proper validation. The existing sanitization function serendipity_isResponseClean() is not called on HTTP_HOST before embedding it into outgoing emails.

An attacker who can control the Host header during an email-triggering action—such as comment notifications or subscription emails—can inject arbitrary SMTP headers into outgoing emails. This enables identity spoofing, reply hijacking via manipulated Message-ID threading, and email reputation abuse through the attacker's domain being embedded in legitimate mail headers.

Critical Impact

Attackers can inject arbitrary SMTP headers into legitimate emails, enabling identity spoofing, reply hijacking, and email reputation abuse affecting both the Serendipity installation and downstream email recipients.

Affected Products

  • Serendipity versions 2.6-beta2 and below
  • Serendipity installations with email notification features enabled
  • Environments where comment notifications or subscription emails are active

Discovery Timeline

  • 2026-04-15 - CVE-2026-39971 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2026-39971

Vulnerability Analysis

This vulnerability is classified as CWE-113 (Improper Neutralization of CRLF Sequences in HTTP Headers), applied here to SMTP headers. The core issue lies in the direct use of user-controllable input—specifically the HTTP Host header—within email Message-ID headers without sanitization.

When Serendipity sends emails for features like comment notifications or subscription confirmations, it constructs Message-ID headers using the server's hostname. The vulnerable code path retrieves this value from $_SERVER['HTTP_HOST'], which is directly controllable by the attacker via the HTTP request. By crafting a malicious Host header containing CRLF sequences and additional SMTP headers, an attacker can inject arbitrary headers into outgoing emails.

The impact includes identity spoofing through injected From or Reply-To headers, manipulation of email threading through crafted Message-ID values, and potential email reputation damage when attacker-controlled domains appear in legitimate mail headers.

Root Cause

The root cause is the failure to sanitize the $_SERVER['HTTP_HOST'] value before embedding it into SMTP headers. While Serendipity includes a sanitization function (serendipity_isResponseClean()), this function is not invoked on the HTTP_HOST value before it is used in the email Message-ID construction within include/functions.inc.php. This oversight allows CRLF injection, enabling attackers to break out of the intended header context and inject additional SMTP headers.

Attack Vector

The attack is network-based and requires no authentication. An attacker can exploit this vulnerability by:

  1. Triggering an email-sending action on the Serendipity installation (e.g., submitting a comment on a blog post configured to send notifications)
  2. Manipulating the HTTP Host header in the request to include CRLF sequences followed by malicious SMTP headers
  3. The injected headers are then included in the outgoing email, potentially affecting recipients who receive the modified message

The vulnerability manifests in the email sending functionality within include/functions.inc.php. The Host header value flows unsanitized into the Message-ID SMTP header construction. For technical implementation details, see the GitHub Security Advisory GHSA-458g-q4fh-mj6r.

Detection Methods for CVE-2026-39971

Indicators of Compromise

  • Unusual or malformed Host headers in web server access logs containing CRLF sequences (%0d%0a or \r\n)
  • Outgoing emails with unexpected or additional SMTP headers not normally present
  • Email delivery logs showing messages with suspicious Message-ID formats or unexpected domains
  • Reports from email recipients about spoofed or manipulated email headers

Detection Strategies

  • Monitor web server access logs for requests containing CRLF-encoded characters (%0d, %0a, %0D, %0A) in Host headers
  • Implement email header inspection on outgoing mail servers to detect anomalous header injection patterns
  • Deploy web application firewall (WAF) rules to block requests with CRLF sequences in Host headers
  • Review Serendipity installation logs for unusual email notification activity patterns

Monitoring Recommendations

  • Enable detailed logging for the email sending functionality in Serendipity
  • Configure alerting for Host header values that deviate from expected server hostnames
  • Monitor email bounce rates and reputation scores for domains associated with the Serendipity installation
  • Implement log correlation between web server requests and outgoing email activity

How to Mitigate CVE-2026-39971

Immediate Actions Required

  • Upgrade Serendipity to version 2.6.0 or later immediately
  • Review recent outgoing emails for signs of header injection or spoofing
  • Temporarily disable email notification features if immediate patching is not possible
  • Implement WAF rules to block requests with malicious Host headers

Patch Information

The vulnerability has been fixed in Serendipity version 2.6.0. The patch addresses the issue by properly sanitizing the HTTP_HOST value before embedding it into SMTP headers. Organizations should upgrade to version 2.6.0 or later to remediate this vulnerability.

For detailed release information, see the Serendipity 2.6.0 Release on GitHub.

Workarounds

  • Implement Host header validation at the web server or reverse proxy level to reject requests with unexpected Host values
  • Configure WAF rules to strip or block CRLF sequences from incoming HTTP headers
  • Use allowlist-based Host header validation to accept only legitimate server hostnames
  • Disable email notification features (comment notifications, subscription emails) until patching is possible
bash
# Apache mod_headers configuration to validate Host header
# Add to .htaccess or Apache configuration
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^(www\.)?yourdomain\.com$ [NC]
    RewriteRule ^ - [F]
</IfModule>

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechSerendipity

  • SeverityHIGH

  • CVSS Score7.2

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-113
  • Technical References
  • GitHub Serendipity Release 2.6.0

  • GitHub Security Advisory GHSA-458g-q4fh-mj6r
  • Related CVEs
  • CVE-2026-39963: Serendipity Privilege Escalation Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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