Buffer overflow in Sparklemotion Nokogiri

CVE-2025-71407

Nokogiri before 1.18.3 contains a stack buffer overflow vulnerability in libxml2 when reporting DTD validation errors with long QName prefixes, and a use-after-free vulnerability during validation against untrusted XML Schemas. Attackers can trigger these vulnerabilities by providing malicious DTD content or untrusted XSD files to cause denial of service or potential code execution.

Vulnerability class: Buffer Overflow

CVSS v3 metric

CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2025-71407?
CVE-2025-71407 is a critical-severity vulnerability in Sparklemotion Nokogiri, classified under Out-of-bounds Write. CVSS score: 9.8/10. Published 2026-08-25.
How severe is CVE-2025-71407?
Critical severity. CVSS v3 base score is 9.8 out of 10.