Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. nokogiri
  4. ›
  5. GHSA-9cv2-cfxc-v4v2

GHSA-9cv2-cfxc-v4v2: Nokogiri: Null Pointer Dereference calling methods on uninitialized wrapper classes

June 19, 2026

Nokogiri contains a bug when calling certain methods on allocated-but-uninitialized native wrapper classes that inherit from Nokogiri::XML::Node. This caused a NULL pointer dereference that could crash the process.

Nokogiri 1.19.4 checks for missing native data pointers and raises a RuntimeError.

JRuby is not affected.

References

  • github.com/advisories/GHSA-9cv2-cfxc-v4v2
  • github.com/sparklemotion/nokogiri/security/advisories/GHSA-9cv2-cfxc-v4v2

Code Behaviors & Features

Detect and mitigate GHSA-9cv2-cfxc-v4v2 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.19.4

Fixed versions

  • 1.19.4

Solution

Upgrade to version 1.19.4 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-476: NULL Pointer Dereference

Source file

gem/nokogiri/GHSA-9cv2-cfxc-v4v2.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:35 +0000.