Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. nokogiri
  4. ›
  5. CVE-2019-18197

CVE-2019-18197: Nokogiri affected by libxslt Use of Uninitialized Resource/Use After Free vulnerability

May 24, 2022 (updated June 9, 2026)

In xsltCopyText in transform.c in libxslt 1.1.33, a pointer variable isn’t reset under certain circumstances. If the relevant memory area happened to be freed and reused in a certain way, a bounds check could fail and memory outside a buffer could be written to, or uninitialized data could be disclosed.

Nokogiri prior to version 1.10.5 contains a vulnerable version of libxslt. Nokogiri version 1.10.5 upgrades the dependency to libxslt 1.1.34, which contains a patch for this issue.

References

  • access.redhat.com/errata/RHSA-2020:0514
  • bugs.chromium.org/p/oss-fuzz/issues/detail?id=15746
  • bugs.chromium.org/p/oss-fuzz/issues/detail?id=15768
  • bugs.chromium.org/p/oss-fuzz/issues/detail?id=15914
  • github.com/advisories/GHSA-242x-7cm6-4w8j
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2019-18197.yml
  • github.com/sparklemotion/nokogiri/blob/01ab95f3e37429ed8d3b380a8d2f73902eb325d9/CHANGELOG.md?plain=1
  • github.com/sparklemotion/nokogiri/issues/1943
  • gitlab.gnome.org/GNOME/libxslt/commit/2232473733b7313d67de8836ea3b29eec6e8e285
  • lists.debian.org/debian-lts-announce/2019/10/msg00037.html
  • nvd.nist.gov/vuln/detail/CVE-2019-18197
  • security.netapp.com/advisory/ntap-20191031-0004
  • security.netapp.com/advisory/ntap-20200416-0004
  • usn.ubuntu.com/4164-1
  • www.oracle.com/security-alerts/cpuapr2020.html

Code Behaviors & Features

Detect and mitigate CVE-2019-18197 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.10.5

Fixed versions

  • 1.10.5

Solution

Upgrade to version 1.10.5 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-416: Use After Free
  • CWE-908: Use of Uninitialized Resource

Source file

gem/nokogiri/CVE-2019-18197.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:17:21 +0000.