Security Digest · Critical advisory (no CVE assigned)

GHSA-353f-x4gh-cqq8: Nokogiri patches vendored libxml2 to resolve multiple CVEs

Summary Nokogiri v1.18.9 patches the vendored libxml2 to address CVE-2025-6021, CVE-2025-6170, CVE-2025-49794, CVE-2025-49795, and CVE-2025-49796.

GitHub-reviewed · critical

Should you act?

  • Only if you depend on one of the packages below, directly or transitively, in a vulnerable version. Check your lockfile with bundle audit check --update.
  • No CVE has been assigned, so it will not appear in CVE-based scanners that ignore GitHub advisories. npm audit, pip-audit and Dependabot do read GitHub advisories.

Affected packages

EcosystemPackageVulnerableFirst fixed
RubyGemsnokogiri< 1.18.91.18.9

Details

Summary

Nokogiri v1.18.9 patches the vendored libxml2 to address CVE-2025-6021, CVE-2025-6170, CVE-2025-49794, CVE-2025-49795, and CVE-2025-49796.

Impact and severity

CVE-2025-6021

A flaw was found in libxml2's xmlBuildQName function, where integer overflows in buffer size calculations can lead to a stack-based buffer overflow. This issue can result in memory corruption or a denial of service when processing crafted input.

NVD claims a severity of 7.5 High (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)

Fixed by applying https://gitlab.gnome.org/GNOME/libxml2/-/commit/17d950ae

CVE-2025-6170

Sources and references

  1. GitHub Advisory GHSA-353f-x4gh-cqq8 github.com
  2. github.com github.com
  3. nvd.nist.gov nvd.nist.gov
  4. nvd.nist.gov nvd.nist.gov
  5. nvd.nist.gov nvd.nist.gov
  6. nvd.nist.gov nvd.nist.gov
  7. nvd.nist.gov nvd.nist.gov
  8. github.com github.com

Critical RubyGems advisories · Today’s Security Digest