libxslt Type Confusion vulnerability that affects Nokogiri
Published 24 May 2022 · Updated 9 Jun 2026
Is your project on an affected nokogiri?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <1.10.5
- Fixed in
- 1.10.5
bundle update --conservative nokogiri # Gemfile: '>= 1.10.5'Details
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.
Is GHSA-cf46-6xxh-pc75 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected nokogiri, and gives you the command that fixes it.
More advisories for nokogiri
- LowCVE-2026-126062JRuby: NONET is bypassed for external DTDs and entities when the systemId uses a short-form IPv4 host · 10 Nov 2026
- LowCVE-2026-126064Nokogiri: Use-After-Free in Nokogiri when replacing an attribute value · 10 Nov 2026
- LowCVE-2026-126063Nokogiri: Mutation XSS through `noscript` content in Nokogiri's HTML5 serializer · 10 Nov 2026
- LowCVE-2026-57435Nokogiri: Possible Use-After-Free when setting an attribute value via `Nokogiri::XML::Attr#value=` or `#content=` · 19 Jun 2026
- LowCVE-2026-57438Nokogiri: Possible Use-After-Free in XInclude Processing · 19 Jun 2026
- LowCVE-2026-57437Nokogiri: Possible Use-After-Free when directly using `NokogirI::XML::XPathContext` beyond document lifetime · 19 Jun 2026
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2019-13118
- Linkgithub.com/sparklemotion/nokogiri/issues/1943
- Linkgithub.com/sparklemotion/nokogiri/commit/43a175339b47b8c604508813fc75b83f13cd173e
- Linkbugs.chromium.org/p/oss-fuzz/issues/detail?id=15069
- Linkseclists.org/bugtraq/2019/Jul/36
- Linkseclists.org/bugtraq/2019/Jul/37
- Linkseclists.org/bugtraq/2019/Jul/40
- Linkseclists.org/bugtraq/2019/Jul/41
- Linkseclists.org/bugtraq/2019/Jul/42
- Linksecurity.netapp.com/advisory/ntap-20190806-0004
- Linksecurity.netapp.com/advisory/ntap-20200122-0003
- Linksupport.apple.com/kb/HT210346
- Linksupport.apple.com/kb/HT210348
- Linksupport.apple.com/kb/HT210351
- Linksupport.apple.com/kb/HT210353
- Linksupport.apple.com/kb/HT210356
- Linksupport.apple.com/kb/HT210357
- Linksupport.apple.com/kb/HT210358
- Linkusn.ubuntu.com/4164-1
- Linkwww.oracle.com/security-alerts/cpujan2020.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.