# CVE-2021-23954: Using the new logical assignment operators in a JavaScript switch statement could have caused a type confusion, leading to a memory corrupt…

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- 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): 1.20%, higher than 69% of CVEs (2026-12-01)
- Published: 2021-02-26T02:10:45.000Z
- Modified: 2026-06-17T03:39:03.757Z
- Weaknesses: CWE-843
- Assigned by: mozilla

## Description

Using the new logical assignment operators in a JavaScript switch statement could have caused a type confusion, leading to a memory corruption and a potentially exploitable crash. This vulnerability affects Firefox < 85, Thunderbird < 78.7, and Firefox ESR < 78.7.

(As written by CVE List.)

## Affected

- Mozilla Firefox: < 85; before 85.0
- Mozilla Thunderbird: < 78.7; before 78.7
- Mozilla Firefox ESR: < 78.7
- mozilla firefox_esr: before 78.7

## Every score

- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://www.mozilla.org/security/advisories/mfsa2021-03/> (release-notes, vendor-advisory)
- <https://www.mozilla.org/security/advisories/mfsa2021-04/> (release-notes, vendor-advisory)
- <https://www.mozilla.org/security/advisories/mfsa2021-05/> (release-notes, vendor-advisory)
- <https://bugzilla.mozilla.org/show_bug.cgi?id=1684020> (issue-tracking, permissions-required, vendor-advisory)

## Sources

- CVE List: [CVE-2021-23954](https://www.cve.org/CVERecord?id=CVE-2021-23954), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-23954](https://nvd.nist.gov/vuln/detail/CVE-2021-23954), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23954 · Whole record: https://cve.day/CVE-2021-23954.json · Rebuilt by cve.day 2026-11-25T22:58:00.077Z
