Use After Free in Nokogiri
CVE-2026-57236
Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, calling Document#encoding= with an invalid encoding (e.g., a non-string, or a string containing a null byte) raises an exception, but only…
Vulnerability class: Use-After-Free
EPSS: 0.003 (26.6th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 8.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H.
Affected products
- Nokogiri
- Sparklemotion Nokogiri — versions < 1.19.4
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM, Mitigation, Vendor Advisory)
Frequently asked questions
- What is CVE-2026-57236?
- CVE-2026-57236 is a high-severity vulnerability in Nokogiri, classified under Use After Free. CVSS score: 8.2/10. Published 2026-06-25.
- How severe is CVE-2026-57236?
- High severity. CVSS v3 base score is 8.2 out of 10.