Apple products are often associated a low risk of security problems compared to their competitors, but they're definitely not free of issues. Case in point: Safari. A report from Google's Project Zero found Apple's web browser has more security vulnerabilities than all other major browsers combined.
Project Zero used an automated testing tool, Domato, to look for security flaws. It found 2 in Chrome, 4 in Internet Explorer and Firefox, 6 in Edge, and 17 in Safari.
Safari is a clear outlier in the experiment with significantly higher number of bugs found. This is especially worrying given attackers' interest in the platform as evidenced by the exploit prices and recent targeted attacks. It is also interesting to compare Safari's results to Chrome's, as until a couple of years ago, they were using the same DOM engine (WebKit). It appears that after the Blink/Webkit split either the number of bugs in Blink got significantly reduced or a significant number of bugs got introduced in the new WebKit code (or both).- Ivan Fratric, Project Zero
This test only looked at the security of the browsers' DOM engine, so it doesn't reflect all possible vulnerabilities.