WP is sometimes referred to as insecure. According to this article it seems that WP Core is secure, but plugins and themes are problematic: "Vulnerabilities from plugins and themes remain as one of the biggest threats to websites built on WordPress. In fact, just 0.58% of security vulnerabilities originate from WordPress core in 2021."