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

CVE-2019-13118: libxslt Type Confusion vulnerability that affects Nokogiri

May 24, 2022 (updated June 9, 2026)

In numbers.c in libxslt 1.1.33, a type holding grouping characters of an xsl:number instruction was too narrow and an invalid character/length combination could be passed to xsltNumberFormatDecimal, leading to a read of uninitialized stack data.

Nokogiri prior to version 1.10.5 used a vulnerable version of libxslt. Nokogiri 1.10.5 updated libxslt to version 1.1.34 to address this and other vulnerabilities in libxslt.

References

  • bugs.chromium.org/p/oss-fuzz/issues/detail?id=15069
  • github.com/advisories/GHSA-cf46-6xxh-pc75
  • github.com/sparklemotion/nokogiri/blob/f7aa3b0b29d6fe5fafe93dacd9b96b6b3d16b7ec/CHANGELOG.md?plain=1
  • github.com/sparklemotion/nokogiri/commit/43a175339b47b8c604508813fc75b83f13cd173e
  • github.com/sparklemotion/nokogiri/issues/1943
  • github.com/sparklemotion/nokogiri/releases/tag/v1.10.5
  • gitlab.gnome.org/GNOME/libxslt/commit/6ce8de69330783977dd14f6569419489875fb71b
  • lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E
  • lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b@%3Cissues.bookkeeper.apache.org%3E
  • lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E
  • lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4@%3Cissues.bookkeeper.apache.org%3E
  • lists.debian.org/debian-lts-announce/2019/07/msg00020.html
  • lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IOYJKXPQCUNBMMQJWYXOR6QRUJZHEDRZ
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IOYJKXPQCUNBMMQJWYXOR6QRUJZHEDRZ
  • nvd.nist.gov/vuln/detail/CVE-2019-13118
  • oss-fuzz.com/testcase-detail/5197371471822848
  • seclists.org/bugtraq/2019/Aug/21
  • seclists.org/bugtraq/2019/Aug/22
  • seclists.org/bugtraq/2019/Aug/23
  • seclists.org/bugtraq/2019/Aug/25
  • seclists.org/bugtraq/2019/Jul/35
  • seclists.org/bugtraq/2019/Jul/36
  • seclists.org/bugtraq/2019/Jul/37
  • seclists.org/bugtraq/2019/Jul/40
  • seclists.org/bugtraq/2019/Jul/41
  • seclists.org/bugtraq/2019/Jul/42
  • security.netapp.com/advisory/ntap-20190806-0004
  • security.netapp.com/advisory/ntap-20200122-0003
  • support.apple.com/kb/HT210346
  • support.apple.com/kb/HT210348
  • support.apple.com/kb/HT210351
  • support.apple.com/kb/HT210353
  • support.apple.com/kb/HT210356
  • support.apple.com/kb/HT210357
  • support.apple.com/kb/HT210358
  • usn.ubuntu.com/4164-1
  • www.oracle.com/security-alerts/cpujan2020.html

Code Behaviors & Features

Detect and mitigate CVE-2019-13118 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.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')

Source file

gem/nokogiri/CVE-2019-13118.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:18 +0000.