This problem exists with all shared code. Shared code, shared fate.
You hope that with more eyes on a library, it'll be more secure. It may also mean vulnerabilities have a higher blast radius. You have to choose where you want to lie on the balance.
Spectre and Log4J - problems on widely deployed tech (Intel CPUs, Java services).