GitHub Advisoryadvisory · RubyGems

GHSA-xh29-r2w5-wx8m Nokogiri Improperly Handles Unexpected Data Type

HIGH Published 2022-05-23 Modified 2025-05-27 Official page ↗
Aliases
CVE-2022-29181
Ecosystem
RubyGems
Packages
nokogiri
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Weaknesses
CWE-241, CWE-843
Reviewed
2022-05-23

Affected packages

• RubyGems nokogiri: < 1.13.6 → fixed in 1.13.6

Description

Summary Nokogiri `= 1.13.6`. JRuby users are not affected. Workarounds To avoid this vulnerability in affected applications, ensure the untrusted input is a `String` by calling `#to_s` or equivalent. Credit This vulnerability was responsibly reported by @agustingianni and the Github Security Lab.

Related

Alias · CVE (1)

  • CVE-2022-29181 Nokogiri is an open source XML and HTML library for Ruby. vulnerability

Weakness · CWE (2)

  • CWE-241 Improper Handling of Unexpected Data Type weakness
  • CWE-843 Access of Resource Using Incompatible Type weakness

References