# CVE-2026-39971: Serendipity: Host Header Injection leads to SMTP header injection via unvalidated HTTP_HOST

- Severity: High 7.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 19% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-14T22:32:38.000Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-458g-q4fh-mj6r
- Weaknesses: CWE-113
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- s9y Serendipity: < 2.6.0; before 2.6.0; 2.6.0
- s9y/serendipity (Packagist): before 2.6.0

## Every score

- GitHub_M: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`

## References

- <https://github.com/s9y/Serendipity/security/advisories/GHSA-458g-q4fh-mj6r> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/s9y/Serendipity/releases/tag/2.6.0> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39971> (advisory)
- <https://github.com/s9y/Serendipity> (package)

## Sources

- CVE List: [CVE-2026-39971](https://www.cve.org/CVERecord?id=CVE-2026-39971), CVE Terms of Use, modified 2026-04-15
- GitHub Advisory Database: [GHSA-458g-q4fh-mj6r](https://github.com/advisories/GHSA-458g-q4fh-mj6r), CC-BY-4.0, modified 2026-05-05
- NVD: [CVE-2026-39971](https://nvd.nist.gov/vuln/detail/CVE-2026-39971), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-39971 · Whole record: https://cve.day/CVE-2026-39971.json · Rebuilt by cve.day 2026-11-25T22:59:18.813Z
