CVE-2021-23960
NixOS vulnerability analysis and mitigation

Overview

CVE-2021-23960 is a security vulnerability discovered in Mozilla Firefox browsers and Thunderbird email client that was disclosed on January 26, 2021. The vulnerability affects Firefox versions below 85, Thunderbird versions below 78.7, and Firefox ESR versions below 78.7. The issue occurs when performing garbage collection on re-declared JavaScript variables, which results in a use-after-poison condition (Mozilla Advisory, NVD).

Technical details

The vulnerability stems from a Shape being given a cross-zone pointer to a BaseShape, which should not occur as cross-zone edges are not properly handled. When garbage collection occurs that does not include the Shape's Zone, the BaseShape is not marked and gets freed incorrectly. This leads to a use-after-poison condition and potentially exploitable crash. The issue specifically manifests when a js::LexicalEnvironmentObject's shape runs Shape::cachify, creating a new owned BaseShape pointer in the wrong Zone. The vulnerability has a CVSS 3.1 Base Score of 8.8 (High) (Ubuntu CVE).

Impact

The vulnerability could result in a potentially exploitable crash when garbage collection is performed on re-declared JavaScript variables. While rated as moderate severity by Mozilla, the vulnerability has a high CVSS score of 8.8, indicating significant potential impact if successfully exploited. The issue requires user interaction and can be triggered through the browser's web console (Mozilla Advisory).

Exploitability

The vulnerability requires Debugger access and is primarily triggered through interactive commands in the web console. This makes it difficult to exploit through normal web content. The most straightforward way to trigger the vulnerability is by typing specific commands into the Firefox web console involving let and const declarations followed by garbage collection (Mozilla Bug).

Mitigation and workarounds

The vulnerability was fixed in Firefox 85, Firefox ESR 78.7, and Thunderbird 78.7. The fix involves ensuring the correct compartment is entered before allocating BaseShape objects. Users should upgrade to these versions or newer to mitigate the vulnerability. The patch was designed to align with existing code paths that properly handle entering the Debuggee realm (Mozilla Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-75874CRITICAL10
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesAug 18, 2026
CVE-2026-74990CRITICAL9.8
  • NixOS logoNixOS
  • firefox-esr
NoYesAug 18, 2026
CVE-2026-74989CRITICAL9.8
  • NixOS logoNixOS
  • MozillaFirefox-translations-common
NoYesAug 18, 2026
CVE-2026-74988CRITICAL9.8
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesAug 18, 2026
CVE-2026-74987CRITICAL9.8
  • NixOS logoNixOS
  • firefox-esr
NoYesAug 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management