From rules
Combat: A power can’t attack a territory controlled by or containing units belonging to a power with which it is not at war. If a power at war attacks a sea zone containing units belonging to both a power with which it’s already at war and a power with which it’s not at war, the latter power’s units are ignored. Those units won’t participate in the battle in any way, and a state of war with that power will not result.





