Use After Free Affecting ruby-nokogiri package, versions *


Severity

Recommended
low

Based on Debian security rating.

Threat Intelligence

EPSS
0.4% (34th percentile)

Do your applications use this vulnerable package?

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 applications
  • Snyk IDSNYK-DEBIAN11-RUBYNOKOGIRI-17496324
  • published26 Jun 2026
  • disclosed25 Jun 2026

Introduced: 25 Jun 2026

CVE-2026-57437  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

There is no fixed version for Debian:11 ruby-nokogiri.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby-nokogiri package and not the ruby-nokogiri package as distributed by Debian. See How to fix? for Debian:11 relevant fixed versions and status.

Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, Nokogiri::XML::XPathContext did not keep its source document alive for garbage collection. If an XPathContext outlived its document and the document was collected, evaluating an XPath expression could read invalid memory and potentially segfault. This is only reachable when application code constructs an XPathContext directly and lets the document become unreachable while continuing to use the context. The normal Document#xpath, #css, and related search methods are not affected, and it is not triggerable by malicious document input. This vulnerability is fixed in 1.19.4.

CVSS Base Scores

version 3.1