Apple has released updates to iOS, iPadOS, macOS, and watchOS that fix a major vulnerability in Safari.