7.17.7 logstash nokogiri-1.12.5 CVE-2022-23437

ask for help , do anyone know how to fix this question,I want to update nokogiri-1.12.5 to nokogiri-1.16.7,and i changed the version int the Gemfile,then i build a logstash docker image,however it doesn`t work