JPMorgan Chase, Visa, and Mastercard disclosed that external service providers they use were targeted by cyberattacks.