Re: egregious issues
In reality that isn't the actual problem. It's so, so easy to believe that your troupe is the 'winner' in any game but the OP's post is proof that FOSS isn't doing what it says it is - inherently giving greater security.
If you're closed source it takes money to seek out bugs, money that is often not given as it is easier to turn your shoulder in the belief that everything is fine. The counter-incentive is the damage to both reputation *and* the bottom line when you lose market confidence or get sued for incursions (see: Delta v Crowdstrike, QSnatch, etc) so security, whist reluctant, often gets done. Just...late.
If you're open source it takes intellectual interest and manpower to seek out bugs in other people's codebase, brainpower that is often not given as it is easier to turn your shoulder because you have your own projects demanding your limited time, as well as believing that either the work is being done by someone else or unnecessary as the original coder "Is as skilled as me". So security is done on a willing-to-tackle, instead of a requirement, basis, rather than as quickly as necessary on the constantly-changing code base. So security often gets done, just...late.
So don't go trumpeting the logical fallacy that FOSS is, inherently, "Better", because it is "community based!". The FOSS ecosystem is inherently labor-limited: there are only so many coders of the necessary skill level multiplied by only so many coders willing or able to take up the workload. This creates security issues for FOSS code as large as those for closed-source code, no matter how much hype and self-aggrandization FOSS wishes to apply to itself.
A Sudo bug, just found last month, has been present for 12 years in the code...yet no one found it earlier. A breakdown of the history of discovered Linux vulnerabilities
https://sternumiot.com/iot-blog/top-linux-security-vulnerabilities-and-how-to-prevent-them/
isn't exactly promising, if we consider the "Many eyes on the code!" belief that has infiltrated FOSS for decades.
----------------------------------
The OP's point-of-fact stands: if FOSS were as good as the promise, HeartBleed, Sudo and Log4j, amongst others, shouldn't have been present without discovery for the many years they existed.
So stop the hype and understand that vigilance, in both closed-source and FOSS code, is absolutely required and a fundamental key part of the complex security web.