Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-39971

HIGH 7.2EPSS 17%

Serendipity: Host Header Injection leads to SMTP header injection via unvalidated HTTP_HOST

Also known as GHSA-458g-q4fh-mj6r

Mitigation

  • Upgrade s9y/serendipity to 2.6.0 or later.

Who should check

  • Projects that depend on Packagist package s9y/serendipity (< 2.6.0)
  • Anyone running s9y Serendipity < 2.6.0

Vulnerability facts

Affected
s9y/serendipity < 2.6.0
Fixed in
2.6.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.2 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: Low
  • Integrity impact: Low
  • Availability impact: None
EPSS
0.31% chance of exploitation in 30 days (percentile 17, 2026-11-26)
CWE
CWE-113
Published
Modified

Description

Serendipity is a PHP-powered weblog engine. 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 validation, and the existing sanitization function serendipity_isResponseClean() is not called on HTTP_HOST before embedding it. 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. This issue has been fixed in version 2.6.0.

Affected and fixed versions

Package / productAffectedFixedSource
Packagist s9y/serendipity< 2.6.02.6.0osv
s9y Serendipity< 2.6.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-39971. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-39971.md
Affected: s9y/serendipity < 2.6.0
Fixed in: 2.6.0

Steps:
1. Search this machine and project for s9y/serendipity (Packagist), s9y Serendipity: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-39971 being exploited?

There is no confirmed exploitation: CVE-2026-39971 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-39971?

High: CVSS 7.2 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-39971?

s9y/serendipity < 2.6.0.

Is there a fix for CVE-2026-39971?

Yes. Fixed in 2.6.0. Upgrade s9y/serendipity to 2.6.0 or later.

How do I check if I'm affected by CVE-2026-39971?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors