Out of the woods

Meaning: No longer in serious difficulty or danger.

Example: The patient is improving, but we’re not out of the woods yet.