Apple is recommending thatMacusers update their systems after revealing that hackers had exploited two vulnerabilities in its software.

The problem was addressed through enhanced validation checks, according to Apple.

The second issue involved a cross-site scripting attack.

Apple said it resolved the vulnerability by improving cookie state management.

Apple also rolled outa security updatefor the iPad and iPhone related to the same vulnerabilities.

Apple did not immediately respond to a request for comment.

The bugs are classified as zero-day vulnerabilities because they were actively exploited before a patch was available.