๐Ÿ” CVE Alert

CVE-2022-50998

HIGH 7.5

Nokogiri before 1.13.9 Multiple Vulnerabilities via libxml2

CVSS Score
7.5
EPSS Score
0.0%
EPSS Percentile
0th

Nokogiri before 1.13.9 (CRuby implementation using packaged libraries) bundles libxml2 v2.9.14, which is affected by CVE-2022-40304 (data corruption / double-free from an entity reference cycle when entity content is allocated from a dict) and CVE-2022-40303 (integer overflows when parsing with XML_PARSE_HUGE). Nokogiri 1.13.9 upgrades the packaged libxml2 to v2.10.3 to address these issues. Processing crafted XML input may lead to denial of service or memory corruption. (The advisory also references CVE-2022-2309, a NULL pointer dereference via iterwalk/canonicalize, which maintainers determined does not affect Nokogiri users.)

CWE CWE-476
Vendor sparklemotion
Product nokogiri
Published Aug 25, 2026
Stay Ahead of the Next One

Get instant alerts for sparklemotion nokogiri

Be the first to know when new high vulnerabilities affecting sparklemotion nokogiri are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Affected Versions

sparklemotion / nokogiri
0 < 1.13.9

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-2qc6-mcvw-92cw github.com: https://github.com/sparklemotion/nokogiri/commit/644a89e080bced793295f61f18aac8cfad6bece2 github.com: https://github.com/sparklemotion/nokogiri/commit/c846986356fc149915a74972bf198abc266bc2c0 vulncheck.com: https://www.vulncheck.com/advisories/nokogiri-before-multiple-vulnerabilities-via-libxml2-2