# GHSA-r95h-9x8f-r3f7: Nokogiri updates packaged libxml2 to v2.12.7 to resolve CVE-2024-34459

- Severity: Low (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-05-13T16:05:42.000Z
- Modified: 2026-11-17T07:11:36.432Z
- Weaknesses: CWE-120

## Description

## Summary

Nokogiri v1.16.5 upgrades its dependency libxml2 to [2.12.7](https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.12.7) from 2.12.6.

libxml2 v2.12.7 addresses CVE-2024-34459:

- described at https://gitlab.gnome.org/GNOME/libxml2/-/issues/720
- patched by https://gitlab.gnome.org/GNOME/libxml2/-/commit/2876ac53


## Impact

There is no impact to Nokogiri users because the issue is present only in libxml2's `xmllint` tool which Nokogiri does not provide or expose.


## Timeline

- 2024-05-13 05:57 EDT, libxml2 2.12.7 release is announced
- 2024-05-13 08:30 EDT, nokogiri maintainers begin triage
- 2024-05-13 10:05 EDT, nokogiri [v1.16.5 is released](https://github.com/sparklemotion/nokogiri/releases/tag/v1.16.5) and this GHSA made public

(As written by GitHub Advisory Database.)

## Affected

- nokogiri (RubyGems): before 1.16.5

## References

- <https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-r95h-9x8f-r3f7> (web)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/GHSA-r95h-9x8f-r3f7.yml> (web)
- <https://github.com/sparklemotion/nokogiri> (package)
- <https://github.com/sparklemotion/nokogiri/releases/tag/v1.16.5> (web)
- <https://gitlab.gnome.org/GNOME/libxml2/-/commit/2876ac53> (web)
- <https://gitlab.gnome.org/GNOME/libxml2/-/issues/720> (web)

## Sources

- GitHub Advisory Database: [GHSA-r95h-9x8f-r3f7](https://github.com/advisories/GHSA-r95h-9x8f-r3f7), CC-BY-4.0, modified 2026-11-17

---

Page: https://cve.day/GHSA-r95h-9x8f-r3f7 · Whole record: https://cve.day/GHSA-r95h-9x8f-r3f7.json · Rebuilt by cve.day 2026-11-25T22:56:41.483Z
