CVE-2022-50998 is a re-tagging of libxml2's CVE-2022-40304 for Nokogiri users — a double-free in entity reference handling within dict-allocated content. The CVSS 7.5 is misleading. The actual exposure is structural: Nokogiri bundles libxml2 2.9.14 as a frozen snapshot, which means every deployment running Nokogiri 1.13.8 was simultaneously running a disclosed libxml2 vulnerability with no independent remediation path. You couldn't patch libxml2 directly — you had to wait for Nokogiri to rebuild, retest, and ship 1.13.9. That window was your exploitation surface.

The severity score compounds a second problem: organizations may have explicitly accepted the CVSS 7.5 risk based on its apparent bounded impact, never realizing they were shipping compiled-memory-corruption exposure in a shared-allocator context they cannot reason about and cannot independently patch. That's a false confidence failure — the score enabled bad risk decisions.

More concerning is the transitive blast radius. Every gem in the Ruby ecosystem that bundles Nokogiri redistributes this exposure downstream. If gem A pins Nokogiri 1.13.8 and gem B depends on gem A, gem B inherits the vulnerability with no visibility and no remediation path of its own. Standard vulnerability scanners that report only Nokogiri's gem version without surfacing the bundled libxml2 payload give you false signal — or no signal at all.

Validate your scanner: confirm it traverses Nokogiri's bundled native libraries and flags the libxml2 version, not just the gem version. Audit your Gemfile.lock for Nokogiri and trace its version through your full dependency tree. The remediation is upgrading Nokogiri, but understand that transitive consumers inherit your version choice — you may be the exposure source for dependencies you didn't write and can't directly patch.