Security holes, yes, MacOS they have their share. Actual security issues that are not trojans where users are duped to install them themselves, not much (if any).
Sample of one, but it's been 15+ years, 10 versions of OSX/macOS, and not a single malware (even with getting stuff from torrents etc). Can't say the same for my Windows boxes.