You can't update dependencies and libraries, you need to use the latest version and if the vulnerability is still being detected, you need to report it to Elastic.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.