Read the docs

Server-side request forgery in Nokogiri on JRuby via external DTDs

Priority LOW 18CWE-611Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Impact type
Information disclosure
Confidentiality · integrity · availability
Low · None · None
Fix status
Partial Red Hat: 1 without a fix

Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-611 and the CVSS impact.

Summary

Nokogiri before 1.19.5 on JRuby is affected. The resolver treats short-form IPv4 hosts and absolute paths resolved against a network URL as local, which bypasses the NONET restriction (CWE-918). A remote attacker who can supply untrusted XML to an application that parses it with DTDLOAD, DTDVALID or NOENT can cause the server to send a network request, enabling server-side request forgery. CRuby and default parse options are not affected.

Written with Claude Haiku 5.5 from the sources below · 2026-11-11

Description from the CNA

Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.5, on JRuby, applications that parse untrusted XML with DTDLOAD, DTDVALID, or NOENT can have the NONET restriction bypassed when an external DTD or entity uses a short-form IPv4 host or uses absolute paths resolved against a network URL. The resolver can treat these identifiers as local and send a network request, potentially enabling server-side request forgery. CRuby and default parse options are not affected. This issue is fixed in version 1.19.5.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0038 32nd percentileScored 2026-11-16
Fix Partial nokogiri (sparklemotion): 1.19.5nokogiri (RubyGems): 1.19.5Red Hat: 1 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
sparklemotionnokogiribefore 1.19.51.19.5Patch availableCNA
—nokogiri (RubyGems)before 1.19.51.19.5Patch availableGHSA-v995-44v6-5fqm
  • nokogiri Vendorsparklemotion Affected before 1.19.5 Fixed in 1.19.5 Patch available CNA
  • nokogiri (RubyGems) Vendor— Affected before 1.19.5 Fixed in 1.19.5 Patch available GHSA-v995-44v6-5fqm

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:*:*:*——sparklemotion
  • cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:*:*:* Versions — — ·sparklemotion

Remediation

Upgrade Nokogiri to version 1.19.5, which fixes this issue on RubyGems. Red Hat lists 3scale API Management Platform 2 as affected without a fix, with the plan none_available.

Written with Claude Haiku 5.5 from the sources below · 2026-11-11

  • Fix · CNA nokogiri (sparklemotion) Fixed in 1.19.5
  • Fix · GHSA-v995-44v6-5fqm nokogiri (RubyGems) Fixed in 1.19.5 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Low. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat 3scale API Management Platform 2AffectedNo fix yet: Fix deferred

Timeline

  1. 2026-11-10 Threatist record created from CVE-2026-126062
  2. 2026-11-10 Alias added: GHSA-v995-44v6-5fqm
  3. 2026-11-10 Fix available: RubyGems/[email protected] · GHSA-v995-44v6-5fqm
  4. 2026-11-10 CVSS score added · GHSA-v995-44v6-5fqm
  5. 2026-11-10 Weakness changed · GHSA-v995-44v6-5fqm
  6. 2026-11-10 7 new references · GHSA-v995-44v6-5fqm
  7. 2026-11-11 Affected versions changed · Red Hat
  8. 2026-11-11 CVSS score added · Red Hat
  9. 2026-11-12 CISA SSVC decision points changed

References

  • TI-2022-11724 Improper Handling of Unexpected Data Type in Nokogiri CVSS 3.1HIGH 8.2
  • TI-2018-15259 zlib before 1.2.12 allows memory corruption when deflating (i.e., when compressing) if… CVSS 3.1HIGH 7.5
  • TI-2026-69678 Mechanize leaks credential headers to other hosts after redirects CVSS 3.1MEDIUM 6.8
  • TI-2025-05895 sparklemotion nokogiri hashmap.c hashmap_get_with_hash heap-based overflow CVSS 4.0MEDIUM 4.8
  • TI-2025-05891 sparklemotion nokogiri hashmap.c hashmap_set_with_hash heap-based overflow CVSS 4.0MEDIUM 4.8
  • TI-2019-03885 OS command injection in Nokogiri CVSS 3.1CRITICAL 9.8
See all 35 →

Sources