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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-611",
"CWE-918"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126062.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "1.19.5"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "97f41b65f4ee0cac859b87f0b26d2648c4806cb8"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "e448ca2827a9198644610fb730259e12baacdeac"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v1.19.5",
"range": [
{
"fixed": "724ef475332fb7378111e8e30d14eda6cdf33b1e"
}
],
"source": "REFERENCES_TAG"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-126062.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"206403405518429768710450672292958461578",
"127762840433231181124071255919055614206",
"17698726176990286526603632900360063453",
"224471529552110598828844013947765180756",
"230171215802684097352459613566489416812",
"216448801263550119580005337500859778853",
"297361602217657273045809280346271509238",
"264388160249701086449747444921910491217",
"24573553179144620598833878412109465126",
"68371163122554385541276592567910758868",
"59196695582117412263148996517889467883",
"269408323994059064452031293393401295710",
"102583974023854243841342976234659234758",
"179829184944295988391179969723173859900",
"145679428069333980683517764583695544705",
"307831531719849531800645848065127454860",
"303515004347906924505299145416458362395"
],
"threshold": 0.9
},
"id": "CVE-2026-126062-061c734f",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/sparklemotion/nokogiri/commit/97f41b65f4ee0cac859b87f0b26d2648c4806cb8",
"target": {
"file": "ext/java/nokogiri/internals/NokogiriEntityResolver.java"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "87669753519556574106443406136932394205",
"length": 1280
},
"id": "CVE-2026-126062-2cd259ea",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/sparklemotion/nokogiri/commit/97f41b65f4ee0cac859b87f0b26d2648c4806cb8",
"target": {
"file": "ext/java/nokogiri/internals/NokogiriEntityResolver.java",
"function": "resolveEntity"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "87669753519556574106443406136932394205",
"length": 1280
},
"id": "CVE-2026-126062-2d2411ec",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/sparklemotion/nokogiri/commit/e448ca2827a9198644610fb730259e12baacdeac",
"target": {
"file": "ext/java/nokogiri/internals/NokogiriEntityResolver.java",
"function": "resolveEntity"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"238562653988649352447756505946234581319",
"45252564517206239773485972778313810770",
"188356804033648070786103264718899669649",
"79984658733898305546881193922517031272",
"215883133251709278144941593310085867619",
"84463414776074546760371942315129460050",
"260247655904375232543089158599824607628",
"96217337687743502715785957564397605017",
"1146437414300747579796650818429973946",
"149264228477374696799277055080659189705",
"291571345998602450472482029965676246677",
"244735378492664363491289094901912661891",
"264410827475188112449620403187551163570",
"117796843948891164808813574056116396565",
"174928273503448462075355068102487731974",
"283889411250682308176377893586291926139",
"239665507359422121615300330761110526996",
"288686551199935761986793166583252917900",
"253818737072097855340588229160319908552",
"292600590379334707280135557276773502506",
"20541338054276994857968222965976747688",
"115268715111804064656984258244860739037",
"117652129044668564879643406744748775733",
"22108307010220202950485611389204967243",
"17698532000818044042476071565176135329",
"283452291431074558279754994906636230702",
"239165417984906778831697560630724585235",
"49672731619250365002595266664025280983",
"251379111272040905297360824484945429624",
"81943000686070659668933518250808337336",
"102356314008368206084249470915393338960",
"219192614360472906137076069407626136300",
"229792296522835663071639598308345226669",
"329034728706408381594680869009763263442",
"89429552811168105442822700439309594049",
"149939878573234295099876090219706270680",
"315136132542702538436572067896758109064",
"308829740885639729398237644028388750052",
"85969230924166096085721320636334408899",
"277820471007917101934001765975289731447",
"79472005944440453511315800371730240667",
"191436709254148598752516501706059056924",
"80431629366875909387926521687105975188",
"174136094012838691868938351407987387785",
"63226710146410758258810148746777420245",
"60637854044044743895110198291706929235",
"259741487002735709613766275820494028977",
"259403110308717185410203696876712447995",
"275599652128008130667648202786859767993",
"105135349804760838859480469610730392589",
"285926929084492494539672977234471052992",
"85111510647877877592233850688959838129",
"217012242330156821489631055817677578807"
],
"threshold": 0.9
},
"id": "CVE-2026-126062-558aaa63",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/sparklemotion/nokogiri/commit/97f41b65f4ee0cac859b87f0b26d2648c4806cb8",
"target": {
"file": "ext/java/nokogiri/XmlSchema.java"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"206403405518429768710450672292958461578",
"127762840433231181124071255919055614206",
"17698726176990286526603632900360063453",
"224471529552110598828844013947765180756",
"230171215802684097352459613566489416812",
"216448801263550119580005337500859778853",
"297361602217657273045809280346271509238",
"264388160249701086449747444921910491217",
"24573553179144620598833878412109465126",
"68371163122554385541276592567910758868",
"59196695582117412263148996517889467883",
"269408323994059064452031293393401295710",
"102583974023854243841342976234659234758",
"179829184944295988391179969723173859900",
"145679428069333980683517764583695544705",
"307831531719849531800645848065127454860",
"303515004347906924505299145416458362395"
],
"threshold": 0.9
},
"id": "CVE-2026-126062-82adb334",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/sparklemotion/nokogiri/commit/e448ca2827a9198644610fb730259e12baacdeac",
"target": {
"file": "ext/java/nokogiri/internals/NokogiriEntityResolver.java"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"24685357872654594148712556248727019",
"50883265026974884332954264267997500088",
"3435861750421497449298054511673831694",
"47787939040065288471192569569036719292",
"336813003725943997083179503686707167107",
"71225527239857863598328782179199451151",
"276358140234191410961942173574863046615"
],
"threshold": 0.9
},
"id": "CVE-2026-126062-8acf8775",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/sparklemotion/nokogiri/commit/e448ca2827a9198644610fb730259e12baacdeac",
"target": {
"file": "ext/java/nokogiri/internals/NokogiriHelpers.java"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"24685357872654594148712556248727019",
"50883265026974884332954264267997500088",
"3435861750421497449298054511673831694",
"47787939040065288471192569569036719292",
"336813003725943997083179503686707167107",
"71225527239857863598328782179199451151",
"276358140234191410961942173574863046615"
],
"threshold": 0.9
},
"id": "CVE-2026-126062-981c3706",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/sparklemotion/nokogiri/commit/97f41b65f4ee0cac859b87f0b26d2648c4806cb8",
"target": {
"file": "ext/java/nokogiri/internals/NokogiriHelpers.java"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"238562653988649352447756505946234581319",
"45252564517206239773485972778313810770",
"261420859284943300520462031009533969273",
"205193452279061671971099334930296766278",
"94770685257637493296249472372640361371",
"336134198253009137727632442064705124461",
"84463414776074546760371942315129460050",
"260247655904375232543089158599824607628",
"96217337687743502715785957564397605017",
"1146437414300747579796650818429973946",
"149264228477374696799277055080659189705",
"291571345998602450472482029965676246677",
"244735378492664363491289094901912661891",
"264410827475188112449620403187551163570",
"117796843948891164808813574056116396565",
"174928273503448462075355068102487731974",
"283889411250682308176377893586291926139",
"239665507359422121615300330761110526996",
"288686551199935761986793166583252917900",
"253818737072097855340588229160319908552",
"292600590379334707280135557276773502506",
"20541338054276994857968222965976747688",
"115268715111804064656984258244860739037",
"117652129044668564879643406744748775733",
"22108307010220202950485611389204967243",
"17698532000818044042476071565176135329",
"283452291431074558279754994906636230702",
"239165417984906778831697560630724585235",
"49672731619250365002595266664025280983",
"251379111272040905297360824484945429624",
"81943000686070659668933518250808337336",
"102356314008368206084249470915393338960",
"219192614360472906137076069407626136300",
"229792296522835663071639598308345226669",
"329034728706408381594680869009763263442",
"89429552811168105442822700439309594049",
"149939878573234295099876090219706270680",
"315136132542702538436572067896758109064",
"308829740885639729398237644028388750052",
"85969230924166096085721320636334408899",
"277820471007917101934001765975289731447",
"79472005944440453511315800371730240667",
"191436709254148598752516501706059056924",
"80431629366875909387926521687105975188",
"174136094012838691868938351407987387785",
"63226710146410758258810148746777420245",
"60637854044044743895110198291706929235",
"259741487002735709613766275820494028977",
"259403110308717185410203696876712447995",
"275599652128008130667648202786859767993",
"105135349804760838859480469610730392589",
"235071850275114462375538049460164931962",
"89327458005602036733911857609342459733",
"95507494208294042211428287512053530016"
],
"threshold": 0.9
},
"id": "CVE-2026-126062-b7f86aad",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/sparklemotion/nokogiri/commit/e448ca2827a9198644610fb730259e12baacdeac",
"target": {
"file": "ext/java/nokogiri/XmlSchema.java"
}
}
]
"2026-11-14T07:04:09Z"