CVE-2022-40958
Mozilla: Bypassing Secure Context restriction for cookies with __Host and __Secure prefix
Severity
ModerateRed Hat Product Security
CVSS 3.0
Review impact separately from score.
Published · September 20, 2022
Updated · November 21, 2025
Description
A flaw was found in Mozilla. The Mozilla Foundation Security Advisory describes the issue that by injecting a cookie with certain special characters, an attacker on a shared subdomain, which is not a secure context, could set and overwrite cookies from a secure context, leading to session fixation and other attacks.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.0 · 6.1CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CWE-784 · Reliance on Cookies without Validation and Integrity Checking in a Security Decision