# CVE-2022-50998

## Summary

- **CVE ID:** CVE-2022-50998
- **Severity:** HIGH
- **CVSS Score:** 8.7 (CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N)
- **CWE:** CWE-476
- **Published:** Aug 25, 2026
- **Last Modified:** Sep 8, 2026

## Description

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.)

## Affected Products

- sparklemotion — nokogiri (0)
- sparklemotion — nokogiri (1.13.9)

## References

- [CNA](https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-2qc6-mcvw-92cw)
- [CNA](https://github.com/sparklemotion/nokogiri/commit/644a89e080bced793295f61f18aac8cfad6bece2)
- [CNA](https://github.com/sparklemotion/nokogiri/commit/c846986356fc149915a74972bf198abc266bc2c0)
- [CNA](https://www.vulncheck.com/advisories/nokogiri-before-multiple-vulnerabilities-via-libxml2-2)
- [CNA](https://github.com/GNOME/libxml2/commit/644a89e080bced793295f61f18aac8cfad6bece2)
- [CNA](https://github.com/GNOME/libxml2/commit/c846986356fc149915a74972bf198abc266bc2c0)

## Exploitation Prediction (EPSS)

- **EPSS Score:** 0.35%
- **EPSS Percentile:** 28.0

---
_Exported from OnDuty AI Vulnerability Intelligence on 2026-09-18._