Security mailing lists by PureSourceCode

CVE-2022-29181

HIGH 8.2CVSS 3.1

Nokogiri Improperly Handles Unexpected Data Type

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.

Published
20 May 2022
Last modified
17 Jun 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-241CWE-843
Also known as
GHSA-xh29-r2w5-wx8m
Sources
NVDJSONOSV GHSA-xh29-r2w5-wx8mJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 8.2 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 8.2 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
OSV GitHub CVSS 3.1 HIGH 8.2 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 6.4 AV:N/AC:L/Au:N/C:P/I:N/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD nokogiri nokogiri
cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:ruby:*:*
< 1.13.6 1.13.6
NVD apple macos
cpe:2.3:o:apple:macos:*:*:*:*:*:*:*:*
>= 13.0, < 13.1 13.1
OSV RubyGems nokogiri < 1.13.6 1.13.6

References

History

  • 25 Nov 2026 20:34 UTC · NVD: first stored (published 20 May 2022)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 May 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.