In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade nokogiri to version 1.19.4 or higher.
nokogiri is a gem for parsing HTML, XML, SAX, and Reader.
Affected versions of this package are vulnerable to Use After Free in the do_xinclude. An attacker can cause invalid memory reads or writes by exposing nodes or namespaces to Ruby before invoking XInclude processing.
Note: This is only exploitable if an application parses a document without XInclude, traverses into an <xi:include> subtree to expose its nodes or namespaces to Ruby, and only then invokes XInclude processing.
This vulnerability can be mitigated by performing XInclude substitution at parse time using the xinclude parse option, rather than calling do_xinclude on a document that has already been traversed.