WordPress Core is vulnerable to Sensitive Information Exposure in versions up to, and including, 6.4.3 via the redirect_guess_404_permalink function. This can allow unauthenticated attackers to expose the slug of a custom post whose 'publicly_queryable' post status has been set to 'false'.
https://github.com/WordPress/wordpress-develop/blob/6.3/src/wp-includes/canonical.php#L763
https://developer.wordpress.org/reference/functions/is_post_type_viewable/
https://developer.wordpress.org/reference/functions/is_post_publicly_viewable/