Is nokogiri 1.18 vulnerable?

RubyGems · 11 releases from 1.18.0 to 1.18.10 · latest nokogiri is 1.19.7 · checked 18 Nov 2026

Yes: 14 known advisories

Yes. nokogiri 1.18.10, the last 1.18 release, is affected by 14 known security advisories (1 high, 3 medium, 10 low), including CVE-2026-79770, CVE-2026-57235, CVE-2026-79771. 4 more affect earlier 1.18.x releases. Upgrade to 1.19.5 or later to fix all of them.

Upgrade with:bundle update --conservative nokogiri # Gemfile: '>= 1.19.5'

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

Advisories affecting nokogiri 1.18.10

  • 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

Fixed within 1.18.x, affecting earlier releases

  • CriticalGHSA-353f-x4gh-cqq821 Jul 2025

    Nokogiri patches vendored libxml2 to resolve multiple CVEs

    Affected
    <1.18.9
    Fixed in
    1.18.9
  • LowGHSA-5w6v-399v-w3cc21 Apr 2025

    Nokogiri updates packaged libxml2 to v2.13.8 to resolve CVE-2025-32414 and CVE-2025-32415

    Affected
    <1.18.8
    Fixed in
    1.18.8
  • HighGHSA-mrxw-mxhj-p66414 Mar 2025

    Nokogiri updates packaged libxslt to v1.1.43 to resolve multiple CVEs

    Affected
    <1.18.4
    Fixed in
    1.18.4
  • LowGHSA-vvfq-8hwr-qm4m18 Feb 2025

    Nokogiri updates packaged libxml2 to 2.13.6 to resolve CVE-2025-24928 and CVE-2024-56171

    Affected
    <1.18.3
    Fixed in
    1.18.3

Every nokogiri 1.18.x release

Affected: 1.18.0 to 1.18.10. Latest nokogiri: 1.19.7.

VersionKnown advisories
nokogiri 1.18.10CVE-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
nokogiri 1.18.9CVE-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
nokogiri 1.18.8CVE-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, GHSA-353f-x4gh-cqq8
nokogiri 1.18.7CVE-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, GHSA-353f-x4gh-cqq8, GHSA-5w6v-399v-w3cc
nokogiri 1.18.6CVE-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, GHSA-353f-x4gh-cqq8, GHSA-5w6v-399v-w3cc
nokogiri 1.18.5CVE-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, GHSA-353f-x4gh-cqq8, GHSA-5w6v-399v-w3cc
nokogiri 1.18.4CVE-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, GHSA-353f-x4gh-cqq8, GHSA-5w6v-399v-w3cc
nokogiri 1.18.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, CVE-2026-79771, CVE-2026-79770, CVE-2026-79772, GHSA-353f-x4gh-cqq8, GHSA-5w6v-399v-w3cc, GHSA-mrxw-mxhj-p664
nokogiri 1.18.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, CVE-2026-79772, GHSA-353f-x4gh-cqq8, GHSA-5w6v-399v-w3cc, GHSA-mrxw-mxhj-p664, GHSA-vvfq-8hwr-qm4m
nokogiri 1.18.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, CVE-2026-79772, GHSA-353f-x4gh-cqq8, GHSA-5w6v-399v-w3cc, GHSA-mrxw-mxhj-p664, GHSA-vvfq-8hwr-qm4m
nokogiri 1.18.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, GHSA-353f-x4gh-cqq8, GHSA-5w6v-399v-w3cc, GHSA-mrxw-mxhj-p664, GHSA-vvfq-8hwr-qm4m

Which of your client projects are still on nokogiri 1.18?

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.