Imagine attending an open house and stepping into a newly remodeled master bathroom complete with brand-new Carrara marble tiling and a luxurious free-standing tub. Home improvements like this are enough to make potential home buyers fall in love, and it may even motivate you to make an offer on the spot.

But what may seem like a dream perk at an open house can turn into an expensive nightmare if there’s no permit paper trail and the home improvements were done without the proper authorizations. Why? Because, depending on where you are in the buying process, un-permitted work could leave you (yes, you) on the hook for way more than you bargained for.

Want to save yourself from this predicament? Read on for everything you need to know about buying a home with work done without a permit.