Drupal takes security very seriously. There is a team looking out for vulnerabilities and work with core and contrib maintainers to fix issues.
If a module has the shield icon, it's covered by the security advisory policy. This means there will be extra attention and a notice when an issue is discovered.