CVE-2026-39971
HIGH 7.2CVSS 3.1Serendipity has a Host Header Injection allows SMTP header injection via unvalidated HTTP_HOST in Message-ID email header
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.
- Published
- 15 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-113
- Also known as
- GHSA-458g-q4fh-mj6r
- Sources
- NVDJSONOSV GHSA-458g-q4fh-mj6rJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | s9y | serendipitycpe:2.3:a:s9y:serendipity:*:*:*:*:*:*:*:* |
< 2.6.0 | 2.6.0 |
| NVD | s9y | serendipitycpe:2.3:a:s9y:serendipity:2.6.0:beta1:*:*:*:*:*:* |
= 2.6.0 | |
| OSV | Packagist | s9y/serendipity | < 2.6.0 | 2.6.0 |
References
- https://github.com/s9y/Serendipity/releases/tag/2.6.0 · Patch, WEB
- https://github.com/s9y/Serendipity/security/advisories/GHSA-458g-q4fh-mj6r · Exploit, Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-39971 · ADVISORY
- https://github.com/s9y/Serendipity · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 15 Apr 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 14 Apr 2026)