Summary judgment may be awarded on an unpleaded cause of action if the proof supports the cause of action and if the opposing party has not been misled to its prejudice.
Castillo v. Hawke Enters., LLC, NY Slip Op 06505 (2d Dep't December 20, 2023)
Here is the decision.