# CVE-2026-39963: Serendipity: Host Header Injection enables authentication cookie scoping to an attacker-controlled domain

- Severity: Medium 6.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/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.23%, higher than 15% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-14T22:32:29.000Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-4m6c-649p-f6gf
- Weaknesses: CWE-565
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(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 6.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N`
- GitHub: CVSS:3.1 6.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N`

## References

- <https://github.com/s9y/Serendipity/security/advisories/GHSA-4m6c-649p-f6gf> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/s9y/Serendipity/releases/tag/2.6.0> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39963> (advisory)
- <https://github.com/s9y/Serendipity> (package)

## Sources

- CVE List: [CVE-2026-39963](https://www.cve.org/CVERecord?id=CVE-2026-39963), CVE Terms of Use, modified 2026-04-15
- GitHub Advisory Database: [GHSA-4m6c-649p-f6gf](https://github.com/advisories/GHSA-4m6c-649p-f6gf), CC-BY-4.0, modified 2026-04-15
- NVD: [CVE-2026-39963](https://nvd.nist.gov/vuln/detail/CVE-2026-39963), Public domain, modified 2026-10-26

---

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