> Doesn't C have years and years of repeated security flaws
No: not if you avoid memory-unsafe functions. The language does not automatically introduce vulnerabilities.
C has a much smaller footprint and runs on thousands of architectures unsupported by other languages.