SecurityContext

CVE-2026-126064: Nokogiri - Use-After-Free

  • Cve: CVE-2026-126064
  • Name: Nokogiri - Use-After-Free
  • Description: Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.5, the CRuby native extension can leave Ruby wrappers pointing to freed memory when Nokogiri::XML::Node#[]= or Nokogiri::XML::Node#lang= replaces an existing attribute value after code has accessed the attribute's child nodes. Replacing the value frees native child nodes while their wrappers remain reachable, and later use of those wrappers can cause an invalid read or process segfault. JRuby is not affected. This issue is fixed in version 1.19.5.
  • Impact: Attackers can cause invalid memory reads or process crashes, potentially leading to denial of service.
  • Remediation: Upgrade to version 1.19.5 or later.
  • Vulnerability type: use_after_free
  • Vulnerability impact: denial_of_service
  • Requirements: Attacker must access attribute child nodes before replacing the attribute value
  • Labels source: securitycontext
  • Severity: low
  • Cvss score: 2
  • Cvss vector: CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Epss score: 0.00155
  • Epss percentile: 0.04566
  • Assignee: [email protected]
  • Published at: 2026-11-10T21:19:24Z
  • Age in days: 14
  • Modified at: 2026-11-12T22:18:35Z
  • Patch available: yes
  • References total: 5
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-126064
  • Nvd status: awaiting_analysis
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirement type, hackerone

Cwe

IdName
CWE-416Use After Free

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://github.com/sparklemotion/nokogiri/commit/b15b518db9fd15fd6b046f73d1439c282e5cc425
https://github.com/sparklemotion/nokogiri/commit/feaed3c8c9bd9d81d064d4ca09b16044cd705d6f
https://github.com/sparklemotion/nokogiri/pull/3752
https://github.com/sparklemotion/nokogiri/releases/tag/v1.19.5
https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-3w22-6jfg-527w

Products

ProductAffectedPlatform boundSourcesUrl
nokogiri:nokogiri< 1.19.5nocna_alias_text/v1/products/nokogiri/nokogiri

Projects

RepositoryLink kindsIndexedUrl
sparklemotion/nokogiricommit, fix, package, pull, releases, security_advisoryyes/v1/repositories/sparklemotion/nokogiri

Index

  • Repositories: 431
  • Repositories high signal: 214
  • Packages: 1

Exploitation

  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts