{"answers":{"affected":"2 open source packages ship an affected version, including nokogiri. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-57435 in the wild and no public exploit code.","fix":"Upgrade nokogiri to 1.19.4 or later.","what":"CVE-2026-57435 is a low-severity use after free vulnerability in sparklemotion nokogiri, published on 25 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-57435 and fix it if it is affected.\n\nWhat it is: CVE-2026-57435 is a low-severity use after free vulnerability in sparklemotion nokogiri, published on 25 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-57435 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- nokogiri (RubyGems): affected all versions; fixed in 1.19.4\n- nokogiri (RubyGems): affected all versions; fixed in 1.19.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-57435/ (Markdown: https://insights.sbomify.com/CVE-2026-57435/index.md)","id":"CVE-2026-57435","markdown":"https://insights.sbomify.com/CVE-2026-57435/index.md","name":"CVE-2026-57435","record":{"aliases":["AZL-91065","BELL-CVE-2026-57435","CLEANSTART-2026-TU47442","DEBIAN-CVE-2026-57435","GHSA-phwj-rprq-35pp","MINI-2w78-pj55-25m5","MINI-64wh-62ch-xr66","MINI-7c55-rfq8-c3g3","MINI-j67q-8rxh-r738","MINI-mv5m-78h2-55gp","MINI-rmm6-2fc9-98p4","MINI-rp7p-9pf3-q4cx","MINI-wggh-3p5v-m2r6","UBUNTU-CVE-2026-57435"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby XML library","requires_auth":"none","summary":"An attacker can cause a denial of service via a use-after-free vulnerability in the Nokogiri Ruby library when modifying XML attribute values.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"nokogiri","vendor":"nokogiri"}],"cvss":{"score":1.7,"severity":"low","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-825","name":"Expired Pointer Dereference"},{"id":"CWE-416","name":"Use After Free"}],"description":"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.","ecosystems":["RubyGems"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Nokogiri: Possible Use-After-Free when setting an attribute value via `Nokogiri::XML::Attr#value=` or `#content=`","id":"CVE-2026-57435","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"use_after_free","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"Nokogiri: Possible Use-After-Free when setting `Document#root=` to an invalid node type","id":"CVE-2026-57436"},"packages":[{"ecosystem":"RubyGems","fixed":["1.19.4"],"introduced":["0"],"last_affected":[],"package":"nokogiri","purl":null,"source":"GHSA-phwj-rprq-35pp"},{"ecosystem":"RubyGems","fixed":["1.19.4"],"introduced":["0"],"last_affected":[],"package":"nokogiri","purl":"pkg:gem/nokogiri","source":"GHSA-phwj-rprq-35pp"}],"prev":{"headline":"Nokogiri: Null Pointer Dereference calling methods on uninitialized wrapper classes","id":"CVE-2026-57434"},"products":["nokogiri"],"published":"2026-06-25","related":[{"cvss_score":8.7,"headline":"Nokogiri before 1.19.3 ReDoS via CSS selector tokenizer","id":"CVE-2026-79770","kev_date_added":null,"published":"2026-08-25"},{"cvss_score":7.5,"headline":"Unchecked return value from xmlTextReaderExpand in Nokogiri","id":"CVE-2022-23476","kev_date_added":null,"published":"2022-12-08"},{"cvss_score":7.5,"headline":"Improper Restriction of XML External Entity Reference (XXE) in Nokogiri on JRuby","id":"CVE-2021-41098","kev_date_added":null,"published":"2021-09-27"},{"cvss_score":7.5,"headline":"Nokogiri is vulnerable to XML External Entity (XXE) attack","id":"CVE-2012-6685","kev_date_added":null,"published":"2020-02-19"},{"cvss_score":6.9,"headline":"Nokogiri before 1.19.3 Memory Leak via XSLT Transform","id":"CVE-2026-79771","kev_date_added":null,"published":"2026-08-25"},{"cvss_score":6.9,"headline":"Nokogiri before 1.19.1 Unchecked Return Value canonicalize","id":"CVE-2026-79772","kev_date_added":null,"published":"2026-08-25"},{"cvss_score":6.3,"headline":"Nokogiri: Possible Out-of-Bounds Read in `Nokogiri::XML::NodeSet#[]`","id":"CVE-2026-57235","kev_date_added":null,"published":"2026-06-25"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-25","vendors":["sparklemotion"]},"summary":"An attacker can cause a denial of service via a use-after-free vulnerability in the Nokogiri Ruby library when modifying XML attribute values.","url":"https://insights.sbomify.com/CVE-2026-57435/"}