Any municipality is authorized and empowered, by resolution of the governing body thereof, to waive, release, modify or subordinate any terms, covenants, conditions, limitations or reverters imposed in sales and conveyances of lands as to the erection, alteration or demolition of buildings or any other use to be made of land heretofore imposed by said municipality to accomplish the purposes for which such lands were sold and conveyed either at public or private sale, including those set forth pursuant to section 21 of P.L. 1971, c.199 (C.40A:12-21),but only after public hearing held before such governing body, of the holding of which notice describing the lands in question, and the terms, covenants, conditions, limitations or reverters to be waived, released, modified or subordinated, and, if to be modified or subordinated, describing the manner in which the same shall be modified or subordinated, shall first have been given by advertisement published once each week for two weeks in a newspaper published in said municipality or, if no newspaper be published therein, then in a newspaper circulating in such municipality, provided, however, that the power herein granted shall not be exercised to impair any vested or contractual rights of third parties.
N.J.S. § 40:60-51.2