SecurityContext

CVE-2026-57437: Nokogiri - Use After Free

  • Cve: CVE-2026-57437
  • Name: Nokogiri - Use After Free
  • Description: Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, Nokogiri::XML::XPathContext did not keep its source document alive for garbage collection. If an XPathContext outlived its document and the document was collected, evaluating an XPath expression could read invalid memory and potentially segfault. This is only reachable when application code constructs an XPathContext directly and lets the document become unreachable while continuing to use the context. The normal Document#xpath, #css, and related search methods are not affected, and it is not triggerable by malicious document input. This vulnerability is fixed in 1.19.4.
  • Impact: Attackers can cause application crashes or segfaults by triggering invalid memory reads.
  • Remediation: Update to version 1.19.4 or later.
  • Vulnerability type: use_after_free
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.3
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
  • Epss score: 0.00402
  • Epss percentile: 0.35228
  • Assignee: [email protected]
  • Published at: 2026-06-25T15:16:41Z
  • Age in days: 152
  • Modified at: 2026-10-25T23:10:00Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-57437
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-416Use After Free

References

UrlSourceTags
https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-p67v-3w7g-wjg7nvdMitigation, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
nokogiri:nokogiri< 1.19.4nonvd/v1/products/nokogiri/nokogiri

Projects

RepositoryLink kindsIndexedUrl
sparklemotion/nokogirisecurity_advisoryyes/v1/repositories/sparklemotion/nokogiri

Index

  • Repositories: 389
  • Repositories high signal: 182
  • Packages: 1

Exploitation

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