7.5

CVE-2022-23476: nokogiri Unchecked Return Value

CVSS: 7.5v3.1HighModified
AliasesUBUNTU-CVE-2022-23476DEBIAN-CVE-2022-23476GHSA-qv4q-mr5r-qprj
Published 08-12-2022Last modified 23-04-2025

Vulnerability summary

CVE-2022-23476 is a high (CVSS 7.5) Unchecked Return Value vulnerability in nokogiri. EPSS estimates a 1.82% chance of exploitation in the next 30 days, higher than 78.4% of scored vulnerabilities.

Overall risk
30/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.5/10
010
High · v3.1 (CVE.org)
EPSS score
1.82%
0%100%
Low · +0.07 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 4 · Related 4

Timeline

  1. 08-12-2022
    PublishedVulnerability first disclosed.
  2. 23-04-2025
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

1.82%

Chance of exploitation in the next 30 days

Percentile

78%

Versus all other CVEs

30-day change

+0.07 pp

From 1.76% on 20-09-2026

20-09-202620-10-2026
EPSS score
1.82%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Debian1 product
  • ruby-nokogiri< 1.13.10+dfsg-1
Nokogiri1 product
RubyGems1 product
  • nokogiri≥ 1.13.8, < 1.13.10
Sparklemotion1 product
Ubuntu1 product
  • ruby-nokogiriAll versions (No fix recorded)

5 vendors · 5 products

References

9 links