Typically, if your application with the new company progresses to an offer stage and they request references from your previous/current employer, they will ask for details of your salary. So, it could come back to haunt you...On the other hand, nothing ventured, nothing gained, and you might be ok and end up with a decent salary bump at the new place!