If using OS X Lion v10.7.5 or OS X Mountain Lion v10.8.3 or later
Get the latest version of Java from Oracle.
If Java 7 or later is already installed, you can use the Java Control Panel to download and install the update:
- Choose Apple menu > System Preferences, then click Java to open the Java Control Panel.
- Click the Update tab and follow the onscreen instructions.
If using Mac OS X v10.6.8
Use Software Update or the Mac App Store to install all available software updates.
Limit your exposure to potential Java web app vulnerabilities
You can disable the Java web plug-in, then enable it only when you need to run a Java web app. While the plug-in is enabled, browse only the websites that need the Java web app. When you're done with those websites, disable the Java web plug-in again.