CVE-2021-43540: Firefox - Stored XSS
- Cve: CVE-2021-43540
- Name: Firefox - Stored XSS
- Description: WebExtensions with the correct permissions were able to create and install ServiceWorkers for third-party websites that would not have been uninstalled with the extension. This vulnerability affects Firefox < 95.
- Impact: Attackers can persist malicious ServiceWorkers on third-party sites, leading to potential ongoing attacks or data theft.
- Remediation: Update to Firefox 95 or later.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: logged_in
- Requirements: Extension has correct permissions
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
- Epss score: 0.0089
- Epss percentile: 0.6028
- Assignee: [email protected]
- Published at: 2021-12-08T22:15:09Z
- Age in days: 1812
- Modified at: 2026-06-17T04:11:05Z
- Patch available: yes
- References total: 3
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-43540
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| NVD-CWE-noinfo | — |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://bugzilla.mozilla.org/show_bug.cgi?id=1636629 | Issue Tracking, Permissions Required, Vendor Advisory |
| https://www.mozilla.org/security/advisories/mfsa2021-52/ | Vendor Advisory |
| https://security.gentoo.org/glsa/202202-03 | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| mozilla:firefox | < 95.0 | no | nvd | /v1/products/mozilla/firefox |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts