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 after freeing the document's current encoding string without replacing it. The document is left referencing freed memory, so the next call to Document#encoding reads invalid memory, which can cause a segfault or leak freed bytes into a Ruby String. Affects the CRuby (libxml2) implementation only; JRuby is not affected. This vulnerability is fixed in 1.19.4.
- Affected products
- Nokogiri
- Nokogiri
- < 1.19.4
- Fix
- Available
- CVSS 3.1
- 8.2 HIGH
- EPSS
- 0.3% (27th percentile)
- Weakness
- CWE-416
- NVD status
- Analyzed
- Published
- 2026-06-25
No indexed exploits for CVE-2026-57236 yet
Our index is partial: it proves presence, never absence
No exploit for CVE-2026-57236 has been indexed yet. Our index is built from live traffic and upstream syncs, so this page can only say what it knows — not that no exploit exists.