CVE-2022-50998: Nokogiri before 1.13.9 Multiple Vulnerabilities via libxml2

Published Aug 25, 2026
·
Updated

Rejected reason: This CVE ID has been rejected as a duplicate.

Affected Software

2 affected components
Nokogiri<1.13.9
Nokogiri Nokogiri Ruby<1.13.9

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Nokogiri to a version that resolves this vulnerability.

    Fixed in 1.13.9
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch CVE-2022-40304
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch CVE-2022-40303

Event History

Aug 25, 2026
CVE Published
via MITRE·03:15 PM
Rejected
via MITRE·03:15 PM
Data Sourced
via NVD·04:16 PM
Description
Sep 8, 2026
Rejected
via MITRE·02:57 PM

Frequently Asked Questions

1

Which Nokogiri deployments are affected?

Affected deployments use the CRuby implementation of Nokogiri with packaged libraries and a Nokogiri version earlier than 1.13.9. The issue described is tied to the bundled libxml2 2.9.14.

2

What must an attacker provide to trigger the issue?

An attacker would need to cause the application to process crafted XML input. One of the referenced flaws involves entity-reference cycles, and another is triggered when parsing with XML_PARSE_HUGE.

3

What is the practical impact of processing malicious XML?

Processing crafted XML may cause denial of service or memory corruption. The affected libxml2 flaws include data corruption or double-free behavior and integer overflows.

4

What remediation is identified?

Upgrade Nokogiri to version 1.13.9, which updates its packaged libxml2 from 2.9.14 to 2.10.3. The advisory states that this addresses the relevant libxml2 issues.

5

Does the referenced NULL pointer dereference affect Nokogiri users?

No. Although the advisory references CVE-2022-2309, Nokogiri maintainers determined that it does not affect Nokogiri users.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203