Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. nokogiri
  4. ›
  5. GHSA-v2fc-qm4h-8hqv

GHSA-v2fc-qm4h-8hqv: Nokogiri XSLT transform has a memory leak

May 6, 2026

Nokogiri’s Nokogiri::XSLT::Stylesheet#transform leaks a small heap allocation when passed a Ruby string parameter containing a null byte.

For applications that pass attacker-controlled input through XSLT.transform parameters, this may be a vector for a denial of service attack against long-running processes.

References

  • github.com/advisories/GHSA-v2fc-qm4h-8hqv
  • github.com/sparklemotion/nokogiri
  • github.com/sparklemotion/nokogiri/security/advisories/GHSA-v2fc-qm4h-8hqv

Code Behaviors & Features

Detect and mitigate GHSA-v2fc-qm4h-8hqv 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.3

Fixed versions

  • 1.19.3

Solution

Upgrade to version 1.19.3 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-401: Missing Release of Memory after Effective Lifetime

Source file

gem/nokogiri/GHSA-v2fc-qm4h-8hqv.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 09 May 2026 00:19:39 +0000.