What would you do if you encountered a significant vulnerability in a system you were developing?

Situational