Is nokogiri 1.16 vulnerable?
RubyGems · 9 releases from 1.16.0 to 1.16.8 · latest nokogiri is 1.19.7 · checked 18 Nov 2026
Yes: 18 known advisories
Yes. nokogiri 1.16.8, the last 1.16 release, is affected by 18 known security advisories (1 critical, 2 high, 3 medium, 12 low), including CVE-2026-79770, CVE-2026-57235, CVE-2026-79771. 2 more affect earlier 1.16.x releases. Upgrade to 1.19.5 or later to fix all of them.
bundle update --conservative nokogiri # Gemfile: '>= 1.19.5'Is your project on an affected nokogiri?
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.16.8
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
Nokogiri: Use-After-Free in Nokogiri when replacing an attribute value
- Affected
- <1.19.5
- Fixed in
- 1.19.5
Nokogiri: Mutation XSS through `noscript` content in Nokogiri's HTML5 serializer
- Affected
- >=1.12.0 <1.19.5
- Fixed in
- 1.19.5
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
Nokogiri: Possible Use-After-Free in XInclude Processing
- Affected
- <1.19.4
- Fixed in
- 1.19.4
Nokogiri: Possible Use-After-Free when directly using `NokogirI::XML::XPathContext` beyond document lifetime
- Affected
- <1.19.4
- Fixed in
- 1.19.4
Nokogiri: Possible Use-After-Free when setting `Document#root=` to an invalid node type
- Affected
- <1.19.4
- Fixed in
- 1.19.4
Nokogiri: Possible Out-of-Bounds Read in `Nokogiri::XML::NodeSet#[]`
- Affected
- <1.19.4
- Fixed in
- 1.19.4
Nokogiri: Null Pointer Dereference calling methods on uninitialized wrapper classes
- Affected
- <1.19.4
- Fixed in
- 1.19.4
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
Nokogiri: Possible Use-After-Free when `Nokogiri::XML::Document#encoding=` raises an exception
- Affected
- <1.19.4
- Fixed in
- 1.19.4
Nokogiri XSLT transform has a memory leak
- Affected
- <1.19.3
- Fixed in
- 1.19.3
Nokogiri CSS selector tokenizer has regular expression backtracking
- Affected
- <1.19.3
- Fixed in
- 1.19.3
Nokogiri does not check the return value from xmlC14NExecute
- Affected
- >=1.5.1 <1.19.1
- Fixed in
- 1.19.1
Nokogiri patches vendored libxml2 to resolve multiple CVEs
- Affected
- <1.18.9
- Fixed in
- 1.18.9
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
Nokogiri updates packaged libxslt to v1.1.43 to resolve multiple CVEs
- Affected
- <1.18.4
- Fixed in
- 1.18.4
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
Fixed within 1.16.x, affecting earlier releases
Nokogiri updates packaged libxml2 to v2.12.7 to resolve CVE-2024-34459
- Affected
- <1.16.5
- Fixed in
- 1.16.5
Nokogiri update packaged libxml2 to v2.12.5 to resolve CVE-2024-25062
- Affected
- >=1.16.0 <1.16.2 · <1.15.6
- Fixed in
- 1.15.6, 1.16.2
Every nokogiri 1.16.x release
Affected: 1.16.0 to 1.16.8. Latest nokogiri: 1.19.7.
| Version | Known advisories |
|---|---|
| nokogiri 1.16.8 | CVE-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.16.7 | CVE-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.16.6 | CVE-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.16.5 | CVE-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.16.4 | CVE-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, GHSA-r95h-9x8f-r3f7 |
| nokogiri 1.16.3 | CVE-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, GHSA-r95h-9x8f-r3f7 |
| nokogiri 1.16.2 | CVE-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, GHSA-r95h-9x8f-r3f7 |
| nokogiri 1.16.1 | CVE-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, GHSA-r95h-9x8f-r3f7, GHSA-xc9x-jj77-9p9j |
| nokogiri 1.16.0 | CVE-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, GHSA-r95h-9x8f-r3f7, GHSA-xc9x-jj77-9p9j |
Which of your client projects are still on nokogiri 1.16?
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.