Joker in the pack

Someone or something that is likely to change a situation in an unexpected way (the joker is one of the cards in a deck of cards that can be used as any card that you want in some games).

The small company was almost bankrupt. However, their new product was the joker in the pack that could save their business.