Skip to main content

Nokogiri EUVDEUVD-2026-122828

| CVE-2026-126062 LOW
Improper Restriction of XML External Entity Reference (CWE-611)
2026-11-10 security-advisories@github.com GHSA-v995-44v6-5fqm
3.7
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted XML to JRuby parser with DTDLOAD/NOENT enabled
  2. Exploit
    Reference external DTD using short-form IPv4 or absolute path
  3. Execution
    Resolver misclassifies host as local, bypasses NONET
  4. Impact
    Nokogiri issues server-side request to internal target

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A02:2025 - Security Misconfiguration
ASVS 5.0
V13 - Configuration XML external entity prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires all of the following: the application must run on JRuby (CRuby is explicitly not affected); it must parse attacker-controlled XML; and it must have enabled one of the non-default parse options DTDLOAD, DTDVALID, or NOENT (default parse options are not affected). The malicious external DTD or entity must use a short-form IPv4 host (e.g. http://127.1/, http://169.254.43518/) or an absolute path such as /x.dtd resolved against a network base URL so the resolver misclassifies it as local. These limiting factors - JRuby-only, non-default configuration, and the specific host-form trick captured by AC:H - substantially narrow real-world exposure below the raw network-vector reading.

Impact

This is a genuinely low-priority issue, and the signals are consistent rather than conflicting. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N = 3.7 Low) reflects a network-reachable but high-complexity flaw with only limited confidentiality impact and no integrity or availability impact, matching the SSRF-only nature of the bug. The vuln.today decision label is 'monitor' (not act_now or emergency), the Nokogiri maintainers independently rated it low severity, and it is not listed in CISA KEV. No EPSS score was supplied, so exploitation probability cannot be quantified from the input. No public working exploit is present - the only referenced code is the vendor's own patch (commits, PR #3752, release v1.19.5), not attacker tooling. The impact is further constrained because only JRuby is affected and only when the application explicitly enables non-default parse options. Net: a real but narrow SSRF hardening fix, appropriate to patch on a normal maintenance cycle rather than as an emergency.

Exploit ScenarioDerived

An application running on JRuby parses attacker-supplied XML with DTDLOAD, DTDVALID, or NOENT enabled. The attacker embeds an external DTD or entity whose system identifier uses a short-form IPv4 host (e.g. http://127.1/ or http://169.254.43518/) or an absolute path resolved against a network base URL, causing the resolver to misclassify it as local and issue a network request to an internal address. No public exploit code was identified; realistic exploitation also depends on the high-complexity bypass trick and the non-default parse configuration.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 10, 2026

Server-side request forgery in Nokogiri on JRuby allows applications that parse untrusted XML with the non-default DTDLOAD, DTDVALID or NOENT options to be induced into making outbound network requests despite the NONET restriction, when an external DTD or entity identifier uses a short-form IPv4 host (such as http://127.1/ or http://169.254.43518/) or an absolute path like /x.dtd resolved against a network base URL. Only JRuby is affected; CRuby and applications using default parse options are explicitly not impacted, and the maintainers rate the issue low severity (CVSS 3.1 base score 3.7, AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N). No public exploit code and no confirmed active exploitation were identified at time of analysis, and the priority decision label is monitor. A vendor-released patch in Nokogiri 1.19.5 applies the stricter XML::Schema resource classification so that with NONET set only local resources are loaded.

RemediationAI

Vendor-released patch: upgrade Nokogiri to 1.19.5 or later, which routes both the entity resolver and the XML::Schema resolver through the shared effectiveResourceIsLocal classification so that with NONET enabled only genuinely local resources are loaded; the change is in pull request https://github.com/sparklemotion/nokogiri/pull/3752 with commits 97f41b65f4ee0cac859b87f0b26d2648c4806cb8 and e448ca2827a9198644610fb730259e12baacdeac, and the advisory is https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-v995-44v6-5fqm. If upgrading is not immediately possible, the vendor's stated alternative is to avoid enabling DTDLOAD, DTDVALID or NOENT when parsing untrusted XML - note the trade-off that disabling these options prevents DTD-based validation, default attribute value loading and external entity expansion, so any workflow relying on a DTD for defaults or entities will need the DTD supplied inline or its behaviour refactored. Migrating affected parsing off JRuby to CRuby also removes the exposure, but that is a platform change rather than a targeted mitigation. Given the JRuby-only, non-default-configuration prerequisites, the CVSS 3.1 score of 3.7 and the monitor priority label, standard release-cycle patching is consistent with the assessed risk.

Affected VersionsENISA

nokogiri < 1.19.5

Affected Packages

rubygems nokogiri fix: 1.19.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in rubygems

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Nokogiri's JRuby backend is implemented in Java on top of Xerces-J, the JAXP reference implementation, and enforces the NONET parse option by hand because Xerces-J does not honour the standard JAXP property XMLConstants.ACCESS_EXTERNAL_SCHEMA. Two enforcement points are involved: NokogiriEntityResolver (an EntityResolver2 used for general external entities and DTDs) and a private SchemaResourceResolver (an LSResourceResolver used for XML::Schema imports). The pre-1.19.5 entity resolver decided locality by parsing the systemId with URI.create and testing uri.getHost() != null, which misses URI forms whose authority is not a dotted-quad host - notably the short-form, inet_aton-style IPv4 literals (http://127.1/, http://169.254.43518/) that the underlying resolver still reaches over the network. It also failed to resolve a relative or absolute-looking systemId such as /x.dtd against the document's baseURI before classifying it, so a path that resolves to a remote host under a network base was treated as local. This is CWE-611 (improper restriction of XML external entity reference) manifesting as CWE-918 (server-side request forgery); the only demonstrated impact is a limited confidentiality read via outbound request behaviour, with no integrity or availability effect. The bypass requires the NONET guard to be active alongside DTDLOAD, DTDVALID or NOENT, and the flaw is a classification error in the resolver rather than a flaw in XML parsing itself. The 1.19.5 fix consolidates the check into NokogiriHelpers.effectiveResourceIsLocal, resolves the systemId against baseURI before classification, fails closed on unparseable URIs and on opaque file: URIs, rejects non-localhost authorities and UNC-shaped paths, and reuses the same classification logic introduced for GHSA-8678-w3jw-xfc2 in XML::Schema.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 3.7 LOW
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
vuln.today AI 3.7 LOW

SSRF is network-reachable (AV:N) and needs no authentication to the parser (PR:N), but requires the specific host-form bypass trick (AC:H); impact is limited internal request disclosure (C:L), no integrity or availability effect.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

Lifecycle Timeline

2
Patch available
Nov 10, 2026 - 21:20 EUVD
CVE Published
Nov 10, 2026 - 20:19 cve.org
LOW 3.7

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.4%
Top 68% exploitable
Prevalence
High
Nokogiri is a near-standard Ruby XML library, though only JRuby deployments are affected
Threat Intel
1
1 sources
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

18
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +18
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

XML External Entity (XXE) attacks exploit XML parsers that process Document Type Definitions (DTDs) without proper restrictions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy