Yahoo just disclosed the size of its executive pay packages and Marissa Mayer stands to make millions coming or going.

The CEO of the embattled online news site, currently trying to sell itself, is entitled to severance benefits valued at $54.9 million in case she is terminated without cause, according to a regulatory filing after the market closed Friday. The potential payout would also be triggered by a "change of control," which includes the sale of the company, according to the filing.