← Back to overview

Nokogiri versions before 1.18.3 are affected by two vulnerabilities rooted in libxml2. The first is a stack buffer overflow triggered when reporting DTD validation errors involving long QName prefixes. The second is a use-after-free vulnerability that occurs during validation against untrusted XML Schemas (XSD files). Both vulnerabilities can be exploited by providing malicious DTD content or untrusted XSD files to affected applications. Successful exploitation may result in denial of service or potential arbitrary code execution. The vulnerabilities are tracked under CVE-2025-71407 and have been patched in Nokogiri 1.18.3. Users and maintainers relying on Nokogiri for XML parsing and validation should upgrade immediately.

Affected products

  • Nokogiri
  • libxml2

Related CVE's

  • CVE-2025-71407

Categories

  • Supply Chain & Dependencies
  • Web Technologies