CVE-2021-47996: Nokogiri before 1.11.4 Multiple Vulnerabilities via libxml2

Published Aug 25, 2026
·
Updated

Nokogiri before 1.11.4 (CRuby implementation only, when the packaged/vendored libxml2 is used) bundles libxml2 2.9.10, which is affected by multiple vulnerabilities addressed in libxml2 2.9.12, including a memory leak in xmlSchemaValidateStream (CVE-2019-20388), a global buffer over-read in xmlEncodeEntitiesInternal (CVE-2020-24977), a heap-based buffer overflow (CVE-2021-3517), and an out-of-bounds read (CVE-2021-3518). Processing crafted XML documents may lead to denial of service, information disclosure, or memory corruption.

Affected Software

2 affected components
rubygems/nokogiri<1.11.4
libxml2>=2.9.10<=2.9.10

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 affected?

The issue applies only to the CRuby implementation of Nokogiri before 1.11.4 when it uses Nokogiri’s packaged or vendored libxml2. Other Ruby implementations and installations using a different libxml2 are not identified as affected by the provided data.

2

What must an attacker be able to do to exploit this?

An attacker needs to cause the application to process a crafted XML document. No authentication or user interaction is indicated by the supplied severity vector.

3

What can happen if a vulnerable application processes malicious XML?

The documented impacts include denial of service, information disclosure, and memory corruption. The bundled libxml2 version is affected by a memory leak, buffer over-read, heap-based buffer overflow, and out-of-bounds read.

4

What is the available remediation?

Upgrade Nokogiri to version 1.11.4 or later, which no longer bundles the affected libxml2 2.9.10 version.

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