Http4k
http4k before 6.48.0.0 Cookie Scoping Bypass via BasicCookieStorage
http4k (Maven artifact org.http4k:http4k-core) before 6.48.0.0, 5.42.0.0, and 4.51.0.0 ships a BasicCookieStorage (client-side cookie store used by ClientFilters.Cookies) that does not enforce RFC 6265 scoping rules for the cookie domain, path, and Secure attributes. When a single BasicCookieStorage instance is used to talk to more than one origin or scheme, cookies stored for one origin can be sent to other origins, and cookies marked Secure can be sent over plain HTTP, potentially disclosing session cookies or other sensitive values to unauthorized hosts or network observers. Clients that use a storage instance for a single origin are not affected.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 6.0.0.0, < 6.48.0.0
Fixed in 6.48.0.0
- >= 5.0.0.0, < 5.42.0.0
Fixed in 5.42.0.0
- < 4.51.0.0
Fixed in 4.51.0.0
Mitigation
Upgrade http4k to 6.48.0.0 or later.
Upgrade http4k to 5.42.0.0 or later.
Upgrade http4k to 4.51.0.0 or later.
References
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.