There is nothing really secure, there is something secure enough. Software security is a problem of design, but designing a software in a secure way is very hard. An unmet specification about security is a security issue.
Until the end of 1990' software vulnerabilities were not disclosed, instead they were traded between security experts or they were sold. At one point people began using full disclosure to press software vendors to fix vulnerabilities, that consists in making public information about the vulnerabilities so that the vendors were forced to fix it before someone takes advantage of it.
After the full disclosure movement vendors realizes that offering visibility to people disclosing bugs was a way of making them work for you instead of against you, But then a new movement rose: the Anti full disclosure that states that after the peoples gained visibility they have no more reasons of giving vulnerabilities for free. And this made the security expert role a paid job.
The last developement in the sector was the introduction of bug bounties
Volnerabilities may be dense so taking out one vulnerability does not make the software more secure.