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 Incorrect Type Conversion or Cast in the protected initialize_copy_with_args copy helper behind Node#dup and #clone, which unwraps its source argument as an xmlNode without a type check. The process crashes on an out-of-bounds memory read when application code calls that method with a non-Node argument, such as a Namespace, whose memory is then read as an xmlNs. Triggering it requires the application itself to invoke the protected internal method with an incompatible type, so it is not reachable through the public API or by untrusted input.