{"id":"CVE-2026-57435","published":"2026-06-25T14:32:49Z","modified":"2026-06-25T14:53:19Z","title":"Nokogiri: Possible Use-After-Free when setting an attribute value via `Nokogiri::XML::Attr#value=` or `#content=`","vendor":"sparklemotion","product":"nokogiri","tier":"tail","description":{"text":"Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, Nokogiri’s CRuby native extension could leave a Ruby wrapper pointing to freed memory when replacing the value of an XML attribute. If Ruby code had already accessed an attribute child node, Nokogiri::XML::Attr#value= could free the underlying native child node while the wrapper remained reachable through the document node cache. A later use of the freed child node or a Ruby GC mark could dereference an invalid pointer, causing an invalid read and a possible segfault. This vulnerability is fixed in 1.19.4.","provenance":"source","from":"CVE.org"},"cvss":{"score":1.7,"severity":"LOW","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0046,"percentile":0.40764,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"},{"id":"CWE-825","name":"Expired Pointer Dereference"}],"references":[{"url":"https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-phwj-rprq-35pp","tags":["x_refsource_CONFIRM"]}],"priority":{"score":9.3,"factors":[{"name":"EPSS percentile","points":8.15},{"name":"CVSS severity","points":1.19}]},"vendorSlug":"sparklemotion","affectedVersions":[{"vendor":"sparklemotion","product":"nokogiri","versions":["< 1.19.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-25T14:53:12.909230Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-39426","exploited":false,"provenance":"source"}}