Speaking in July, security expert Bruce Schneier said: "As bad as the damage is from publishing - and there probably will be some - the damage is much, much worse by not disclosing."
This was actually said about the Oyster card hack details being revealed by Dutch researchers, but it is also the exact reason why open source code is so good too; by sharing freely then people can check the safety, security and accuracy of what they use instead of having to blindly trust those who supply proprietary, closed-source tools.
Note how often Microsoft's "Patch Tuesday" comes around?
BBC Click