Elasticsearch 8.8.2 vulnerabilities issue

The issue you linked to seem to have been fixed, so I would recommend upgrading to the latest version, which at the moment is 8.15.1.