Fixing vulnerablities in logstash code

None, you cannot upgrade the individual components and libraries used by Logstash, you would need to upgrade to a new Logstash version, if available.

If you are not on the last versions of Logstash which are 7.17.13 for the version 7 and 8.10.0 for the version 8, you need to upgrade to the last version.

If after the upgrade the vulnerability is still being detected, you will need to report it to Elastic through the e-mail security@elastic.co and wait for a fix.