{"id":"CVE-2026-39971","published":"2026-04-14T23:35:49Z","modified":"2026-04-15T16:22:04Z","title":"Serendipity: Host Header Injection leads to SMTP header injection via unvalidated HTTP_HOST","vendor":"s9y","product":"Serendipity","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00259,"percentile":0.17994,"provenance":"source"},"cwes":[{"id":"CWE-113","name":"Improper Neutralization of CRLF Sequences in HTTP Headers"}],"references":[{"url":"https://github.com/s9y/Serendipity/security/advisories/GHSA-458g-q4fh-mj6r","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/s9y/Serendipity/releases/tag/2.6.0","tags":["x_refsource_MISC"]}],"priority":{"score":8.6,"factors":[{"name":"EPSS percentile","points":3.6},{"name":"CVSS severity","points":5.04}]},"vendorSlug":"s9y","affectedVersions":[{"vendor":"s9y","product":"Serendipity","versions":["< 2.6.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-15T16:20:55.327550Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"s9y/serendipity","vulnerableRanges":["<2.6.0"],"patched":["2.6.0"],"from":["GHSA-458g-q4fh-mj6r"],"provenance":"source"}],"summary":{"text":"The Serendipity weblog engine, in versions 2.6-beta2 and below, inserts the unvalidated HTTP Host header directly into the Message-ID header of outgoing email within include/functions.inc.php, bypassing its existing sanitization function. An unauthenticated remote attacker who can control the Host header during an email-triggering action, such as comment notifications or subscription emails, can inject arbitrary SMTP headers to spoof identities, hijack replies through manipulated Message-ID threading, or abuse email reputation via their own domain.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:09:16Z"},"euvd":{"id":"EUVD-2026-22811","exploited":false,"provenance":"source"}}