CVE-2022-40956Cross-site Scripting in Mozilla Firefox

Severity
6.1MEDIUMNVD
OSV5.5
EPSS
0.2%
top 52.58%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedDec 22
Latest updateSep 22

Description

When injecting an HTML base element, some requests would ignore the CSP's base-uri settings and accept the injected element's base instead. This vulnerability affects Firefox ESR < 102.3, Thunderbird < 102.3, and Firefox < 105.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NExploitability: 2.8 | Impact: 2.7

Affected Packages8 packages

CVEListV5mozilla/firefoxunspecified105
NVDmozilla/firefox< 105.0
CVEListV5mozilla/firefox_esrunspecified102.3
NVDmozilla/firefox_esr< 102.3
CVEListV5mozilla/thunderbirdunspecified102.3

🔴Vulnerability Details

4
OSV
CVE-2022-40956: When injecting an HTML base element, some requests would ignore the CSP's base-uri settings and accept the injected element's base instead2022-12-22
GHSA
GHSA-74v3-gjvq-vv7f: When injecting an HTML base element, some requests would ignore the CSP's base-uri settings and accept the injected element's base instead2022-12-22
CVEList
CVE-2022-40956: When injecting an HTML base element, some requests would ignore the CSP's base-uri settings and accept the injected element's base instead2022-12-22
OSV
thunderbird vulnerabilities2022-11-11

📋Vendor Advisories

7
Ubuntu
Thunderbird vulnerabilities2022-11-11
Ubuntu
Firefox vulnerabilities2022-09-30
Red Hat
Mozilla: Content-Security-Policy base-uri bypass2022-09-20
Debian
CVE-2022-40956: firefox - When injecting an HTML base element, some requests would ignore the CSP's base-u...2022
Mozilla
Mozilla Foundation Security Advisory 2022-40: CVE-2022-40956

💬Community

1
Bugzilla
CSP bypass in DevTools Network Tab Response Preview because `content-security-policy:` headers ignored2024-09-22
CVE-2022-40956 — Cross-site Scripting in Mozilla | cvebase