In WordPress before 4.9.9 and 5.x before 5.0.1, authors could bypass intended restrictions on post types via crafted input.
https://www.zdnet.com/article/wordpress-plugs-bug-that-led-to-google-indexing-some-user-passwords/
https://www.debian.org/security/2019/dsa-4401
https://wpvulndb.com/vulnerabilities/9170
https://wordpress.org/support/wordpress-version/version-5-0-1/
https://wordpress.org/news/2018/12/wordpress-5-0-1-security-release/
https://lists.debian.org/debian-lts-announce/2019/02/msg00019.html