{"id":"CVE-2026-39963","published":"2026-04-14T23:31:13Z","modified":"2026-04-15T13:23:48Z","title":"Serendipity: Host Header Injection enables authentication cookie scoping to an attacker-controlled domain","vendor":"s9y","product":"Serendipity","tier":"tail","description":{"text":"Serendipity is a PHP-powered weblog engine. In versions 2.6-beta2  and below, the serendipity_setCookie() function in include/functions_config.inc.php uses $_SERVER['HTTP_HOST'] without validation as the domain parameter of setcookie(). An attacker who can influence the Host header at login time, such as via MITM, reverse proxy misconfiguration, or load balancer manipulation, can force authentication cookies including session tokens and auto-login tokens to be scoped to an attacker-controlled domain. This enables session fixation, token leakage to attacker-controlled infrastructure, and privilege escalation if an admin logs in under a poisoned Host header. This issue has been fixed in version 2.6.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00228,"percentile":0.13872,"provenance":"source"},"cwes":[{"id":"CWE-565","name":"Reliance on Cookies without Validation and Integrity Checking"}],"references":[{"url":"https://github.com/s9y/Serendipity/security/advisories/GHSA-4m6c-649p-f6gf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/s9y/Serendipity/releases/tag/2.6.0","tags":["x_refsource_MISC"]}],"priority":{"score":7.6,"factors":[{"name":"EPSS percentile","points":2.77},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"s9y","affectedVersions":[{"vendor":"s9y","product":"Serendipity","versions":["< 2.6.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-15T13:23:44.552367Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"s9y/serendipity","vulnerableRanges":["<2.6.0"],"patched":["2.6.0"],"from":["GHSA-4m6c-649p-f6gf"],"provenance":"source"}],"summary":{"text":"Serendipity, a PHP-powered weblog engine, has a flaw in its serendipity_setCookie() function in include/functions_config.inc.php, which uses the unvalidated HTTP Host header as the cookie domain for authentication cookies. An attacker who can influence the Host header when a user logs in, for example through a man-in-the-middle position, a reverse proxy misconfiguration, or load balancer manipulation, can scope session and auto-login tokens to an attacker-controlled domain, enabling session fixation and token leakage, with the attack requiring user interaction such as the victim logging in.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:13:12Z"},"euvd":{"id":"EUVD-2026-22809","exploited":false,"provenance":"source"}}