CVE-2022-29181
Improper Handling of Unexpected Data Type in Nokogiri
HIGH 8.2EPSS 3.2%
Nokogiri is an open source XML and HTML library for Ruby. Nokogiri prior to version 1.13.6 does not type-check all inputs into the XML and HTML4 SAX parsers, allowing specially crafted untrusted inputs to cause illegal memory access errors (segfault) or reads from unrelated memory. Version 1.13.6 contains a patch for this issue. As a workaround, ensure the untrusted input is a `String` by calling `#to_s` or equivalent.
- Affected
- sparklemotion · nokogiri
- CVSS v3.1 NVD
- 8.2 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H - CVSS v2.0 NVD
- 6.4 MEDIUM
AV:N/AC:L/Au:N/C:P/I:N/A:P - EPSS
- 3.23% chance of exploitation in the next 30 days, 88th percentile
- Published
- 2022-05-20
- Updated
- 2025-05-27
Proof-of-concept exploits (1)
Security advisories
- http://seclists.org/fulldisclosure/2022/Dec/23
- sparklemotion/nokogiri/releases/tag/v1.13.6
- sparklemotion/nokogiri/security/advisories/GHSA-xh29-r2w5-wx8m
- https://security.gentoo.org/glsa/202208-29
- https://support.apple.com/kb/HT213532
- advisories/GHSA-xh29-r2w5-wx8m