CVE-2022-29181

Improper Handling of Unexpected Data Type in Nokogiri

HIGH
8.2
CVSS Score
Published: May 20, 2022 at 12:00 AM UTC
Updated: June 17, 2026 at 04:39 AM UTC
3 products affected across 3 vendorsmacOSNokogiriNokogiri

Using nokogiri by sparklemotion?

Get instant alerts when new vulnerabilities affect nokogiri - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.2
Exploit prediction
EPSS 3%
SSVC
PoC

Description

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

13.0 ≤ v < 13.1
Affected range stops below 13.1, so it looks safe — our inference, not a vendor statement
v < 1.13.6
Affected range stops below 1.13.6, so it looks safe — our inference, not a vendor statement
v < 1.13.6
Affected range stops below 1.13.6, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (9)

SSVC — Action Prioritization

SSVCPoCAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

8.2HIGHGitHub_M
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-241CWE-843

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card