Bug 2497300 - CVE-2026-57437 rubygem-nokogiri: Nokogiri: Denial of Service due to improper XPathContext garbage collection [fedora-all]
Summary: CVE-2026-57437 rubygem-nokogiri: Nokogiri: Denial of Service due to improper ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: rubygem-nokogiri
Version: rawhide
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Mamoru TASAKA
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["bfab9bb2-1888-4a00-8801-8...
Depends On:
Blocks: CVE-2026-57437
TreeView+ depends on / blocked
 
Reported: 2026-07-06 09:20 UTC by Vipul Nair
Modified: 2026-07-06 14:10 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-07-06 14:10:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Vipul Nair 2026-07-06 09:20:47 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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.

Comment 1 Mamoru TASAKA 2026-07-06 14:10:37 UTC
Fixed in 1.19.4 which is already pushed.


Note You need to log in before you can comment on or make changes to this bug.