They are both correct English, but they are different entities grammatically. "Someone's life is in danger" is a complete clause (could be a complete sentence). "Someone whose life is in danger" is just a noun phrase.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.