Description
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.
Published: 2026-08-25
Score: 9.3 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Nokogiri, a Ruby XML library, ships with bundled versions of libxml2 and libxslt that are vulnerable to two upstream flaws. The libxslt defect (CVE‑2021‑30560) permits a denial‑of‑service when an application applies untrusted XSL stylesheets. The libxml2 defect (CVE‑2022‑23308) can lead to denial of service, memory disclosure, or code execution when parsing an untrusted document with DTD validation enabled and entity expansion disabled. These weaknesses arise from improper memory handling (CWE‑416) and can be triggered by externally supplied XML or XSL content, potentially giving an attacker high‑impact influence over the target application. The combined effect is a high‑severity exploit that threatens confidentiality, integrity, and availability of systems that rely on Nokogiri for XML processing.

Affected Systems

The vulnerability affects any installation of the sparklemotion:nokogiri library with version numbers before 1.13.2 when the packaged libxml2 2.9.12 and libxslt 1.1.34 libraries are in use. This includes typical Rails, Sinatra, and other Ruby applications that depend on Nokogiri for XML parsing or XSL transformation, provided they are not configured to use system‑provided XML libraries instead of the bundled ones.

Risk and Exploitability

The CVSS score of 9.3 indicates critical severity and the lack of an available EPSS score does not mitigate the risk posed by the known exploitability of the underlying C library flaws. Because the CVE is not listed in CISA’s KEV catalog, no active known exploits are documented at this time, but the high score and the nature of the flaws suggest that exploitation could be accomplished by providing crafted XML or XSL files to a vulnerable application. The likely attack vector is an attacker who can influence the input to the Nokogiri parser—either through network‑exposed APIs or third‑party data ingestion. Given the severity, administrators should treat this as a high‑risk issue until patched.

Generated by OpenCVE AI on August 25, 2026 at 16:23 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Nokogiri to version 1.13.2 or later, which includes updated libxml2 2.9.13 and libxslt 1.1.35.
  • If upgrading Nokogiri is not immediately possible, configure the library to use the system’s libxml2 and libxslt instead of the bundled copies to avoid the vulnerable upstream code.
  • As a temporary protection, reject or sanitize any externally supplied XML or XSL content before it is processed by Nokogiri to limit the attacker’s ability to trigger the underlying vulnerabilities.

Generated by OpenCVE AI on August 25, 2026 at 16:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 25 Aug 2026 16:45:00 +0000

Type Values Removed Values Added
First Time appeared Sparklemotion
Sparklemotion nokogiri
Vendors & Products Sparklemotion
Sparklemotion nokogiri

Tue, 25 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Nokogiri before 1.13.2 Multiple Vulnerabilities via libxml2 libxslt
First Time appeared Nokogiri
Nokogiri nokogiri
Weaknesses CWE-416
CPEs cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:*:*:*
Vendors & Products Nokogiri
Nokogiri nokogiri
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Nokogiri Nokogiri
Sparklemotion Nokogiri
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-25T15:15:55.205Z

Reserved: 2026-08-25T14:31:37.342Z

Link: CVE-2022-51000

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-25T16:16:44.380

Modified: 2026-08-25T16:16:44.380

Link: CVE-2022-51000

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-25T16:30:06Z

Weaknesses