CVE-2022-29181: Improper Handling of Unexpected Data Type in Nokogiri

CVE-2022-29181 affects 3 listed versions of Apple macOS in the Dawnsentry catalogue.

8.2CVSS high
Proof of concept publicexploitation
3%EPSS (next 30 days)
20 May 2022published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Apple macOS

3 of 250 listed versions are affected. Fixed in 13.1. The newest release, 27.2.1, is not affected.

13.0.1 13.0 13

What it is

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H (NVD)

Published by GitHub on 20 May 2022. Last changed 17 June 2026.

Sources

Check one version you run: look CVE-2022-29181 up, or pick a product and version in the quick lookup.

Updated 1 December 2026.