Apple patched 40 vulnerabilities in its latest security update for the Mac OS X.