GHSA-vvfq-8hwr-qm4m Nokogiri updates packaged libxml2 to 2.13.6 to resolve CVE-2025-24928 and CVE-2024-56171

Not scored Published
Exploited in the wild
Not known
Fix
Available

What is GHSA-vvfq-8hwr-qm4m?

GHSA-vvfq-8hwr-qm4m is a vulnerability in nokogiri, published on 18 Feb 2025.

Official description

Summary

Nokogiri v1.18.3 upgrades its dependency libxml2 to v2.13.6.

libxml2 v2.13.6 addresses:

Impact

CVE-2025-24928

Stack-buffer overflow is possible when reporting DTD validation errors if the input contains a long (~3kb) QName prefix.

CVE-2024-56171

Use-after-free is possible during validation against untrusted XML Schemas (.xsd) and, potentially, validation of untrusted documents against trusted Schemas if they make use of xsd:keyref in combination with recursively defined types that have additional identity constraints.

Which versions are affected by GHSA-vvfq-8hwr-qm4m?

1 open source package ship an affected version, including nokogiri.

PackageAffectedFixed in
nokogiri RubyGems
pkg:gem/nokogiri
All versions1.18.3
Status by vendor (1)
WhoReleaseStatusPackages
Upstreamfixednokogiri (1.18.3)
pkg:gem/nokogiri

How do I fix GHSA-vvfq-8hwr-qm4m?

Upgrade nokogiri to 1.18.3 or later.

Is GHSA-vvfq-8hwr-qm4m being exploited?

There is no known exploitation of GHSA-vvfq-8hwr-qm4m in the wild and no public exploit code.

Sources

Is GHSA-vvfq-8hwr-qm4m in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free