CVE-2023-54354: Nokogiri before 1.14.3 Null Pointer Dereference via libxml2

Published Aug 25, 2026
·
Updated

Nokogiri before 1.14.3 (CRuby implementation only, when using the packaged libxml2) bundles libxml2 v2.10.3, which is vulnerable to NULL pointer dereferences in XML Schema processing (xmlSchemaFixupComplexType, CVE-2023-28484, and xmlSchemaCheckCOSSTDerivedOK). An attacker who supplies a crafted/malformed XML schema can cause libxml2 to dereference a NULL pointer and potentially segfault, resulting in a denial of service. Nokogiri 1.14.3 upgrades the packaged libxml2 to v2.10.4 to resolve these issues.

Affected Software

2 affected components
npm/nokogiri<1.14.3
redhat/libxml2>=2.10.3<=2.10.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade nokogiri to a version that resolves this vulnerability.

    Fixed in 1.14.3
  2. Upgrade

    Upgrade libxml2 to a version that resolves this vulnerability.

    Fixed in 2.10.4Patch CVE-2023-28484

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 Nokogiri deployments are affected?

Affected deployments use the CRuby implementation of Nokogiri before version 1.14.3 and its packaged libxml2. The issue does not describe exposure for other Nokogiri implementations or for deployments not using the packaged libxml2.

2

What does an attacker need to trigger the denial of service?

An attacker needs to be able to supply a crafted or malformed XML schema that the affected application processes. Successful exploitation can cause a NULL pointer dereference and potentially segfault the process.

3

How can I determine whether my application is exposed?

Check whether the application uses CRuby, runs Nokogiri earlier than 1.14.3, and uses Nokogiri's packaged libxml2. Affected Nokogiri releases bundle libxml2 version 2.10.3.

4

What version resolves the issue?

Upgrade Nokogiri to version 1.14.3 or later. This release updates the packaged libxml2 from version 2.10.3 to 2.10.4 to address the NULL pointer dereference issues.

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