CVE-2022-51000: Nokogiri before 1.13.2 Multiple Vulnerabilities via libxml2 libxslt

Published Aug 25, 2026
·
Updated

Nokogiri before 1.13.2 (CRuby, when using packaged libraries) ships vendored libxml2 2.9.12 and libxslt 1.1.34, which are affected by two upstream CVEs. Via CVE-2021-30560 in libxslt, an application transforming XML with untrusted XSL stylesheets is vulnerable to a denial-of-service attack. Via CVE-2022-23308 in libxml2, an application parsing an untrusted document with parse option DTDVALID set to true and NOENT set to false may be vulnerable to denial of service, memory disclosure, or code execution. Nokogiri 1.13.2 upgrades vendored libxml2 to 2.9.13 and libxslt to 1.1.35.

Affected Software

1 affected component
rubygems/nokogiri<1.13.2

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.2
  2. Compensating control

    If using a Nokogiri version before 1.13.2, avoid transforming XML with untrusted XSL stylesheets to mitigate the libxslt CVE-2021-30560 denial-of-service risk.

  3. Compensating control

    If using a Nokogiri version before 1.13.2, avoid parsing untrusted documents with parse option DTDVALID set to true and NOENT set to false to mitigate the libxml2 CVE-2022-23308 denial-of-service, memory disclosure, or code execution risk.

Event History

Aug 25, 2026
CVE Published
via MITRE·03:15 PM
Data Sourced
via MITRE·03:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:16 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to the libxslt issue?

CRuby deployments of Nokogiri before 1.13.2 that use packaged libraries are affected when they transform XML using untrusted XSL stylesheets. The stated impact for this path is denial of service.

2

What parser configuration is required for the libxml2 issue to be reachable?

The application must parse an untrusted document with the DTDVALID parse option set to true and the NOENT option set to false. Under those conditions, the issue may allow denial of service, memory disclosure, or code execution.

3

What version resolves the bundled-library exposure?

Upgrade Nokogiri to 1.13.2. This version updates the vendored libxml2 library to 2.9.13 and libxslt to 1.1.35.

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