CVE catalog

CVE-2026-57437

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 XPa

[CVE catalog]

Severity
Medium · CVSS 4.7CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.40% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianruby-nokogirisid1.19.4+dfsg-1fixed
Debianruby-nokogiriforky1.19.4+dfsg-1fixed
Debianruby-nokogiritrixie1.18.2+dfsg-1vulnerable
Debianruby-nokogiribookworm1.13.10+dfsg-2vulnerable
Cperuby-nokogiriNot reportedNot reportedvulnerable
CpenokogiriNot reported1.19.4fixed
CpenokogiriNot reported1.19.4fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianruby-nokogirisourcesid1.19.4+dfsg-1not yet assignedNot reported[1140769]
Debianruby-nokogirisourceforky1.19.4+dfsg-1not yet assignedNot reported[1140769]
Debianruby-nokogirisourcetrixie(unfixed)not yet assignedNot reported[1140769]
Debianruby-nokogirisourcebookworm(unfixed)not yet assignedNot reported[1140769]
CpenokogiricpeNot reported1.19.4Not reportedNot reportedNot reported
CpenokogiricpeNot reported1.19.4Not reportedNVD-CVE-2026-57437Not reported

[Debian bug #1140769]

Notes

[trixie] ruby-nokogiri: Minor issue [bookworm] ruby-nokogiri: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [ruby-nokogiri]Affected

    Source package: [ruby-nokogiri]

    Details (2)
    • 1.13.10+dfsg-2+b1 · amd64 · bookworm

      Affected

      nvd · ruby-nokogiri · debian · bookworm; nvd · ruby-nokogiri · debian · 12

    • 1.13.10+dfsg-2+b1 · arm64 · bookworm

      Affected

      nvd · ruby-nokogiri · debian · bookworm; nvd · ruby-nokogiri · debian · 12

[Debian 13 (Trixie)]

  • [ruby-nokogiri]Affected

    Source package: [ruby-nokogiri]

    Details (2)
    • 1.18.2+dfsg-1+b1 · amd64 · trixie

      Affected

      nvd · ruby-nokogiri · debian · 13

    • 1.18.2+dfsg-1+b1 · arm64 · trixie

      Affected

      nvd · ruby-nokogiri · debian · 13

Observed:

References