← Back to CVE List
Vulnerability Intelligence Report
Unchecked return value from xmlTextReaderExpand in Nokogiri

CVE-2022-23476

Nokogiri is an open source XML and HTML library for the Ruby programming language. Nokogiri `1.13.8` and `1.13.9` fail to check the return value from `xmlTextReaderExpand` in the method `Nokogiri::XML::Reader#attribute_hash`. This can lead to a null pointer exception when invalid markup is being parsed. For applications using `XML::Reader` to parse untrusted inputs, this may potentially be a vector for a denial of service attack. Users are advised to upgrade to Nokogiri `>= 1.13.10`. Users may be able to search their code for calls to either `XML::Reader#attributes` or `XML::Reader#attribute_hash` to determine if they are affected.

No Active Exploit Signals
CVSS Base Score
7.5
HIGH
Exploitability:3.9
Impact Score:3.6
EPSS Probability:1.68%
Executive Threat Verdict
Evaluating...
Evaluating Threat Landscape...
Assessing known weaponization, exploitation telemetry, and federal advisories.
Attack Surface
—
Authentication
—
Weaponization
—
SSVC Action
—

Weaknesses (CWE)

CWE-252 ↗CWE-252: Unchecked Return Value
CWE-476 ↗CWE-476: NULL Pointer Dereference

Affected Products & Versions

Vendor Product Affected Versions
sparklemotion nokogiri >= 1.13.8, < 1.13.10 (affected)

References & Technical Advisories

No reference links found.

Threat Intelligence Signals

EPSS Score
1.680%

Identity & Timeline

StatusPUBLISHED
Assigning AuthorityGitHub, Inc. · Vendor · USA
Reserved2022-01-19T21:23:53
Published2022-12-08T03:03:24
Last Updated2025-04-23T16:31:18

LINK COPIED TO CLIPBOARD