Is nokogiri 1.19 vulnerable?

RubyGems · 8 releases from 1.19.0 to 1.19.7 · latest nokogiri is 1.19.7 · checked 18 Nov 2026

No known advisories in the last release

nokogiri 1.19.7, the last 1.19 release, has no known advisories. 14 advisories affect earlier 1.19.x releases, so update to 1.19.7.

Update within 1.19:bundle update --conservative nokogiri # Gemfile: '>= 1.19.7'

Is your project on an affected nokogiri?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Fixed within 1.19.x, affecting earlier releases

  • LowCVE-2026-126062GHSA-v995-44v6-5fqm10 Nov 2026

    JRuby: NONET is bypassed for external DTDs and entities when the systemId uses a short-form IPv4 host

    Affected
    <1.19.5
    Fixed in
    1.19.5
  • LowCVE-2026-126064GHSA-3w22-6jfg-527w10 Nov 2026

    Nokogiri: Use-After-Free in Nokogiri when replacing an attribute value

    Affected
    <1.19.5
    Fixed in
    1.19.5
  • LowCVE-2026-126063GHSA-4p39-36wj-23h410 Nov 2026

    Nokogiri: Mutation XSS through `noscript` content in Nokogiri's HTML5 serializer

    Affected
    >=1.12.0 <1.19.5
    Fixed in
    1.19.5
  • LowCVE-2026-57435GHSA-phwj-rprq-35pp19 Jun 2026

    Nokogiri: Possible Use-After-Free when setting an attribute value via `Nokogiri::XML::Attr#value=` or `#content=`

    Affected
    <1.19.4
    Fixed in
    1.19.4
  • LowCVE-2026-57438GHSA-wfpw-mmfh-qq6919 Jun 2026

    Nokogiri: Possible Use-After-Free in XInclude Processing

    Affected
    <1.19.4
    Fixed in
    1.19.4
  • LowCVE-2026-57437GHSA-p67v-3w7g-wjg719 Jun 2026

    Nokogiri: Possible Use-After-Free when directly using `NokogirI::XML::XPathContext` beyond document lifetime

    Affected
    <1.19.4
    Fixed in
    1.19.4
  • LowCVE-2026-57436GHSA-wjv4-x9w8-wm3h19 Jun 2026

    Nokogiri: Possible Use-After-Free when setting `Document#root=` to an invalid node type

    Affected
    <1.19.4
    Fixed in
    1.19.4
  • MediumCVE-2026-57235GHSA-5prr-v3j2-97mh19 Jun 2026

    Nokogiri: Possible Out-of-Bounds Read in `Nokogiri::XML::NodeSet#[]`

    Affected
    <1.19.4
    Fixed in
    1.19.4
  • LowCVE-2026-57434GHSA-9cv2-cfxc-v4v219 Jun 2026

    Nokogiri: Null Pointer Dereference calling methods on uninitialized wrapper classes

    Affected
    <1.19.4
    Fixed in
    1.19.4
  • LowCVE-2026-57234GHSA-8678-w3jw-xfc219 Jun 2026

    Nokogiri: XML::Schema on JRuby allows network requests when NONET is set, bypassing CVE-2020-26247

    Affected
    <1.19.4
    Fixed in
    1.19.4
  • LowCVE-2026-57236GHSA-5v8h-3h3q-446p19 Jun 2026

    Nokogiri: Possible Use-After-Free when `Nokogiri::XML::Document#encoding=` raises an exception

    Affected
    <1.19.4
    Fixed in
    1.19.4
  • MediumCVE-2026-79771GHSA-v2fc-qm4h-8hqv6 May 2026

    Nokogiri XSLT transform has a memory leak

    Affected
    <1.19.3
    Fixed in
    1.19.3
  • HighCVE-2026-79770GHSA-c4rq-3m3g-8wgx6 May 2026

    Nokogiri CSS selector tokenizer has regular expression backtracking

    Affected
    <1.19.3
    Fixed in
    1.19.3
  • MediumCVE-2026-79772GHSA-wx95-c6cv-853218 Feb 2026

    Nokogiri does not check the return value from xmlC14NExecute

    Affected
    >=1.5.1 <1.19.1
    Fixed in
    1.19.1

Every nokogiri 1.19.x release

Affected: 1.19.0 to 1.19.4. 1.19.5 and later are not affected.

VersionKnown advisories
nokogiri 1.19.7None
nokogiri 1.19.6None
nokogiri 1.19.5None
nokogiri 1.19.4CVE-2026-126062, CVE-2026-126064, CVE-2026-126063
nokogiri 1.19.3CVE-2026-126062, CVE-2026-126064, CVE-2026-126063, CVE-2026-57435, CVE-2026-57438, CVE-2026-57437, CVE-2026-57436, CVE-2026-57235, CVE-2026-57434, CVE-2026-57234, CVE-2026-57236
nokogiri 1.19.2CVE-2026-126062, CVE-2026-126064, CVE-2026-126063, CVE-2026-57435, CVE-2026-57438, CVE-2026-57437, CVE-2026-57436, CVE-2026-57235, CVE-2026-57434, CVE-2026-57234, CVE-2026-57236, CVE-2026-79771, CVE-2026-79770
nokogiri 1.19.1CVE-2026-126062, CVE-2026-126064, CVE-2026-126063, CVE-2026-57435, CVE-2026-57438, CVE-2026-57437, CVE-2026-57436, CVE-2026-57235, CVE-2026-57434, CVE-2026-57234, CVE-2026-57236, CVE-2026-79771, CVE-2026-79770
nokogiri 1.19.0CVE-2026-126062, CVE-2026-126064, CVE-2026-126063, CVE-2026-57435, CVE-2026-57438, CVE-2026-57437, CVE-2026-57436, CVE-2026-57235, CVE-2026-57434, CVE-2026-57234, CVE-2026-57236, CVE-2026-79771, CVE-2026-79770, CVE-2026-79772

Which of your client projects are still on nokogiri 1.19?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact nokogiri version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other nokogiri versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the RubyGems registry. Refreshed daily.