CISA list

● RubyGems gem

nokogiri

Nokogiri has 60 security advisories. The newest release any of them names as the fix is 1.19.5.

As of , nokogiri has 60 security advisories. The newest release any of them names as the fix is 1.19.5.

Your version, and the version to upgrade to

Find the row your installed version falls in. The second column is the first release after it that none of the advisories lists as affected; a release outside every row is one no advisory lists. That is what the advisories say, not a promise that a release is free of flaws.
If you runUpgrade toAdvisories
Before 1.19.51.19.560 advisories

Security advisories, newest first

Security advisories, newest first
AdvisoryWhat it isAffectsFixed inPublished
CVE-2026-126062GHSA-v995-44v6-5fqmJRuby: NONET is bypassed for external DTDs and entities when the systemId uses a short-form IPv4 hostLow severityBefore 1.19.51.19.5
CVE-2026-126064GHSA-3w22-6jfg-527wNokogiri: Use-After-Free in Nokogiri when replacing an attribute valueLow severityBefore 1.19.51.19.5
CVE-2026-126063GHSA-4p39-36wj-23h4Nokogiri: Mutation XSS through `noscript` content in Nokogiri's HTML5 serializerLow severityFrom 1.12.0 before 1.19.51.19.5
CVE-2026-57435GHSA-phwj-rprq-35ppNokogiri: Possible Use-After-Free when setting an attribute value via `Nokogiri::XML::Attr#value=` or `#content=`Low severityBefore 1.19.41.19.4
CVE-2026-57438GHSA-wfpw-mmfh-qq69Nokogiri: Possible Use-After-Free in XInclude ProcessingLow severityBefore 1.19.41.19.4
CVE-2026-57437GHSA-p67v-3w7g-wjg7Nokogiri: Possible Use-After-Free when directly using `NokogirI::XML::XPathContext` beyond document lifetimeLow severityBefore 1.19.41.19.4
CVE-2026-57436GHSA-wjv4-x9w8-wm3hNokogiri: Possible Use-After-Free when setting `Document#root=` to an invalid node typeLow severityBefore 1.19.41.19.4
CVE-2026-57235GHSA-5prr-v3j2-97mhNokogiri: Possible Out-of-Bounds Read in `Nokogiri::XML::NodeSet#[]`Moderate severityBefore 1.19.41.19.4
CVE-2026-57434GHSA-9cv2-cfxc-v4v2Nokogiri: Null Pointer Dereference calling methods on uninitialized wrapper classesLow severityBefore 1.19.41.19.4
CVE-2026-57234GHSA-8678-w3jw-xfc2Nokogiri: XML::Schema on JRuby allows network requests when NONET is set, bypassing CVE-2020-26247Low severityBefore 1.19.41.19.4
CVE-2026-57236GHSA-5v8h-3h3q-446pNokogiri: Possible Use-After-Free when `Nokogiri::XML::Document#encoding=` raises an exceptionLow severityBefore 1.19.41.19.4
CVE-2026-79771GHSA-v2fc-qm4h-8hqvNokogiri XSLT transform has a memory leakModerate severityBefore 1.19.31.19.3
CVE-2026-79770GHSA-c4rq-3m3g-8wgxNokogiri CSS selector tokenizer has regular expression backtrackingHigh severityBefore 1.19.31.19.3
CVE-2026-79772GHSA-wx95-c6cv-8532Nokogiri does not check the return value from xmlC14NExecuteModerate severityFrom 1.5.1 before 1.19.11.19.1
GHSA-353f-x4gh-cqq8Nokogiri patches vendored libxml2 to resolve multiple CVEsCritical severityBefore 1.18.91.18.9
GHSA-5w6v-399v-w3ccNokogiri updates packaged libxml2 to v2.13.8 to resolve CVE-2025-32414 and CVE-2025-32415Low severityBefore 1.18.81.18.8
GHSA-mrxw-mxhj-p664Nokogiri updates packaged libxslt to v1.1.43 to resolve multiple CVEsHigh severityBefore 1.18.41.18.4
GHSA-vvfq-8hwr-qm4mNokogiri updates packaged libxml2 to 2.13.6 to resolve CVE-2025-24928 and CVE-2024-56171Low severityBefore 1.18.31.18.3
GHSA-r95h-9x8f-r3f7Nokogiri updates packaged libxml2 to v2.12.7 to resolve CVE-2024-34459Low severityBefore 1.16.51.16.5
GHSA-xc9x-jj77-9p9jNokogiri update packaged libxml2 to v2.12.5 to resolve CVE-2024-25062Moderate severityFrom 1.16.0 before 1.16.2; Before 1.15.61.15.6, 1.16.2
GHSA-pxvg-2qj5-37jqNokogiri updates packaged libxml2 to v2.10.4 to resolve multiple CVEsModerate severityBefore 1.14.31.14.3
CVE-2022-23476GHSA-qv4q-mr5r-qprjUnchecked return value from xmlTextReaderExpandHigh severityFrom 1.13.8 before 1.13.101.13.10
GHSA-2qc6-mcvw-92cwUpdate bundled libxml2 to v2.10.3 to resolve multiple CVEsModerate severityBefore 1.13.91.13.9
CVE-2021-30560GHSA-59gp-qqm7-cw4jNokogiri has vulnerable dependencies on libxml2 and libxsltHigh severityBefore 1.13.21.13.2
CVE-2021-3517GHSA-jw9f-hh49-cvp9Nokogiri contains libxml Out-of-bounds Write vulnerabilityHigh severityBefore 1.11.41.11.4
CVE-2021-3518GHSA-v4f8-2847-rwm7Nokogiri Implements libxml2 version vulnerable to use-after-freeHigh severityBefore 1.11.41.11.4
CVE-2021-3537GHSA-286v-pcf5-25rcNokogiri Implements libxml2 version vulnerable to null pointer dereferencingModerate severityBefore 1.11.41.11.4
CVE-2019-5815GHSA-vmfx-gcfq-wvm2Nokogiri implementation of libxslt vulnerable to heap corruptionHigh severityBefore 1.10.51.10.5
CVE-2019-18197GHSA-242x-7cm6-4w8jNokogiri affected by libxslt Use of Uninitialized Resource/Use After Free vulnerabilityHigh severityBefore 1.10.51.10.5
CVE-2019-13118GHSA-cf46-6xxh-pc75libxslt Type Confusion vulnerability that affects NokogiriHigh severityBefore 1.10.51.10.5
CVE-2019-13117GHSA-4hm9-844j-jmxpUninitialized read in Nokogiri gemModerate severityBefore 1.10.51.10.5
CVE-2022-29181GHSA-xh29-r2w5-wx8mNokogiri Improperly Handles Unexpected Data TypeHigh severityBefore 1.13.61.13.6
GHSA-cgx6-hpwq-fhv5Integer Overflow or Wraparound in libxml2 affects NokogiriHigh severityBefore 1.13.51.13.5
CVE-2017-15412GHSA-r58r-74gx-6wx3Nokogiri gem, via libxml, is affected by DoS vulnerabilitiesHigh severityBefore 1.8.21.8.2
CVE-2019-11068GHSA-qxcg-xjjg-66mjNokogiri vulnerable to libxslt protection mechanism bypassCritical severityBefore 1.10.31.10.3
CVE-2017-16932GHSA-x2fm-93ww-ggvxNokogiri gem, via libxml, is affected by DoS vulnerabilitiesHigh severityBefore 1.8.11.8.1
CVE-2013-6460GHSA-62qp-3fxm-9wxfNokogiri vulnerable to DoS while parsing XML documentsModerate severityFrom 1.6.0 before 1.6.1; From 1.5.0 before 1.5.111.5.11, 1.6.1
CVE-2013-6461GHSA-jmhh-w7xp-wg39Nokogiri vulnerable to DoS while parsing XML entitiesModerate severityFrom 1.6.0 before 1.6.1; From 1.5.0 before 1.5.111.5.11, 1.6.1
CVE-2012-6685GHSA-6wj9-77wq-jq7pNokogiri is vulnerable to XML External Entity (XXE) attackHigh severityBefore 1.5.41.5.4
GHSA-gx8x-g87m-h5q6Denial of Service (DoS) in Nokogiri on JRubyHigh severityBefore 1.13.41.13.4
GHSA-xxx9-3xcr-gjj3XML Injection in Xerces Java affects NokogiriModerate severityBefore 1.13.41.13.4
GHSA-v6gp-9mmm-c6p5Out-of-bounds Write in zlib affects NokogiriHigh severityBefore 1.13.41.13.4
CVE-2022-24836GHSA-crjr-9rc5-ghw8Nokogiri Inefficient Regular Expression ComplexityHigh severityBefore 1.13.41.13.4
CVE-2018-25032GHSA-jc36-42cf-vqwjNokogiri affected by zlib's Out-of-bounds Write vulnerabilityHigh severityBefore 1.13.41.13.4
GHSA-fq42-c5rg-92c2Vulnerable dependencies in NokogiriHigh severityBefore 1.13.21.13.2
CVE-2021-41098GHSA-2rr5-8q37-2w7hImproper Restriction of XML External Entity Reference (XXE) in Nokogiri on JRubyHigh severityBefore 1.12.51.12.5
GHSA-7rrm-v45f-jp64Nokogiri updates packaged dependency on libxml2 from 2.9.10 to 2.9.12Moderate severityBefore 1.11.41.11.4
CVE-2020-26247GHSA-vr8q-g5c7-m54mNokogiri::XML::Schema trusts input by default, exposing risk of XXE vulnerabilityModerate severityBefore 1.11.01.11.0
CVE-2020-7595GHSA-7553-jr98-vx47libxml as used in Nokogiri has an infinite loop in a certain end-of-file situationHigh severityBefore 1.10.81.10.8
CVE-2019-5477GHSA-cr5j-953j-xw5pNokogiri Command Injection VulnerabilityCritical severityBefore 1.10.41.10.4
CVE-2018-14404GHSA-6qvp-r6r3-9p7hNokogiri NULL Pointer DereferenceHigh severityBefore 1.8.51.8.5
CVE-2015-7499GHSA-jxjr-5h69-qw3wHeap-based buffer overflow in nokogiriModerate severityFrom 1.6.0 before 1.6.7.21.6.7.2
CVE-2015-8806GHSA-7hp2-xwpj-95jqDenial of service or RCE from libxml2 and libxsltHigh severityFrom 1.6.0 before 1.6.81.6.8
CVE-2016-4658GHSA-fr52-4hqw-p27fNokogiri does not forbid namespace nodes in XPointer rangesCritical severityBefore 1.7.11.7.1
CVE-2015-5312GHSA-xjqg-9jvg-fgx2Nokogiri subject to DoS via libxml2 vulnerabilityHigh severityFrom 1.6.0 before 1.6.7.11.6.7.1
CVE-2015-1819GHSA-q7wx-62r7-j2x7Nokogiri vulnerable to libxml XML Entity ExpansionModerate severityFrom 1.6.6.0 before 1.6.6.41.6.6.4
CVE-2017-5029GHSA-pf6m-fxpq-fg8vNokogiri implementation of libxslt lacks integer overflow checksHigh severityBefore 1.7.21.7.2
CVE-2017-18258GHSA-882p-jqgm-f45gUncontrolled resource consumption in nokogiriModerate severityBefore 1.8.21.8.2
CVE-2018-8048GHSA-x7rv-cr6v-4vm4Cross-site Scripting in loofahModerate severityBefore 1.8.31.8.3
CVE-2017-9050GHSA-8c56-cpmw-89x7Out-of-bounds read in nokogiriHigh severityBefore 1.8.11.8.1

Other RubyGems gems

Sources
  • Package advisories from the GitHub Advisory Database (CC BY 4.0). Version ranges are reworded as sentences (source). Licence: CC BY 4.0