Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:deb/debian/ruby-nokogiri@1.13.10%2Bdfsg-2?distro=trixie
purl pkg:deb/debian/ruby-nokogiri@1.13.10%2Bdfsg-2?distro=trixie
Vulnerabilities affecting this package (0)
Vulnerability Summary Fixed by
This package is not known to be affected by vulnerabilities.
Vulnerabilities fixed by this package (11)
Vulnerability Summary Aliases
VCID-64c1-dzhs-u3gj Nokogiri has a vulnerability allowing arbitrary execution of code if a certain function is used. CVE-2019-5477
GHSA-cr5j-953j-xw5p
VCID-8geh-vfns-pfgs Improper Restriction of XML External Entity Reference Nokogiri is a Rubygem providing HTML, XML, SAX, and Reader parsers with XPath and CSS selector support. In Nokogiri v1.12.4, on JRuby only, the SAX parser resolves external entities by default. Users of Nokogiri on JRuby who parse untrusted documents using any of these classes are affected: Nokogiri::XML::SAX::Parse, Nokogiri::HTML4::SAX::Parser or its alias Nokogiri::HTML::SAX::Parser, Nokogiri::XML::SAX::PushParser, and Nokogiri::HTML4::SAX::PushParser or its alias Nokogiri::HTML::SAX::PushParser. JRuby users should upgrade to Nokogiri. CVE-2021-41098
GHSA-2rr5-8q37-2w7h
VCID-8zyc-vw5k-wqaw sparklemotion nokogiri hashmap.c hashmap_get_with_hash heap-based overflow ### Withdrawn Advisory This advisory has been withdrawn because the affected code was never included in a release. This link has been maintained to preserve external references. ### Original Description A vulnerability was found in sparklemotion nokogiri c29c920907366cb74af13b4dc2230e9c9e23b833. It has been classified as problematic. This affects the function hashmap_get_with_hash of the file gumbo-parser/src/hashmap.c. The manipulation leads to heap-based buffer overflow. An attack has to be approached locally. The exploit has been disclosed to the public and may be used. The real existence of this vulnerability is still doubted at the moment. The patch is named ada4708e5a67114402cd3feb70a4e1d1d7cf773a. It is recommended to apply a patch to fix this issue. The project maintainer explains that the affected code was merged into the main branch but the commit never appeared in an official release. CVE-2025-6494
GHSA-jc9r-qcgw-fxq9
VCID-9wgc-swf9-z7hq Inefficient Regular Expression Complexity Nokogiri is an open source XML and HTML library for Ruby. Nokogiri `< v1.13.4` contains an inefficient regular expression that is susceptible to excessive backtracking when attempting to detect encoding in HTML documents. Users are advised to upgrade to Nokogiri `>= 1.13.4`. There are no known workarounds for this issue. CVE-2022-24836
GHSA-crjr-9rc5-ghw8
VCID-eru7-uy2t-d3ef A vulnerability has been discovered in Nokogiri, which can lead to a denial of service. CVE-2022-23476
GHSA-qv4q-mr5r-qprj
VCID-gxbt-wyyf-1yg8 Nokogiri vulnerable to DoS while parsing XML entities Nokogiri gem 1.5.x and 1.6.x has DoS while parsing XML entities by failing to apply limits CVE-2013-6461
GHSA-jmhh-w7xp-wg39
OSV-101458
VCID-qj6u-xryx-s3ev sparklemotion nokogiri hashmap.c hashmap_set_with_hash heap-based overflow ### Withdrawn Advisory This advisory has been withdrawn because the affected code was never included in a release. This link has been maintained to preserve external references. ### Original Description A vulnerability was found in sparklemotion nokogiri c29c920907366cb74af13b4dc2230e9c9e23b833 and classified as problematic. This issue affects the function hashmap_set_with_hash of the file gumbo-parser/src/hashmap.c. The manipulation leads to heap-based buffer overflow. An attack has to be approached locally. The exploit has been disclosed to the public and may be used. The real existence of this vulnerability is still doubted at the moment. The identifier of the patch is ada4708e5a67114402cd3feb70a4e1d1d7cf773a. It is recommended to apply a patch to fix this issue. The project maintainer explains that the affected code was merged into the main branch but the commit never appeared in an official release. CVE-2025-6490
GHSA-pf9w-gvcf-gv7m
VCID-snr1-kaug-43aa Multiple vulnerabilities have been discovered in Nokogiri, the worst of which could result in denial of service. CVE-2022-29181
GHSA-xh29-r2w5-wx8m
VCID-vhyk-9tbb-quc3 Nokogiri::XML::Schema trusts input by default, exposing risk of XXE vulnerability ### Severity Nokogiri maintainers have evaluated this as [__Low Severity__ (CVSS3 2.6)](https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N). ### Description In Nokogiri versions <= 1.11.0.rc3, XML Schemas parsed by `Nokogiri::XML::Schema` are **trusted** by default, allowing external resources to be accessed over the network, potentially enabling XXE or SSRF attacks. This behavior is counter to the security policy followed by Nokogiri maintainers, which is to treat all input as **untrusted** by default whenever possible. Please note that this security fix was pushed into a new minor version, 1.11.x, rather than a patch release to the 1.10.x branch, because it is a breaking change for some schemas and the risk was assessed to be "Low Severity". ### Affected Versions Nokogiri `<= 1.10.10` as well as prereleases `1.11.0.rc1`, `1.11.0.rc2`, and `1.11.0.rc3` ### Mitigation There are no known workarounds for affected versions. Upgrade to Nokogiri `1.11.0.rc4` or later. If, after upgrading to `1.11.0.rc4` or later, you wish to re-enable network access for resolution of external resources (i.e., return to the previous behavior): 1. Ensure the input is trusted. Do not enable this option for untrusted input. 2. When invoking the `Nokogiri::XML::Schema` constructor, pass as the second parameter an instance of `Nokogiri::XML::ParseOptions` with the `NONET` flag turned off. So if your previous code was: ``` ruby # in v1.11.0.rc3 and earlier, this call allows resources to be accessed over the network # but in v1.11.0.rc4 and later, this call will disallow network access for external resources schema = Nokogiri::XML::Schema.new(schema) # in v1.11.0.rc4 and later, the following is equivalent to the code above # (the second parameter is optional, and this demonstrates its default value) schema = Nokogiri::XML::Schema.new(schema, Nokogiri::XML::ParseOptions::DEFAULT_SCHEMA) ``` Then you can add the second parameter to indicate that the input is trusted by changing it to: ``` ruby # in v1.11.0.rc3 and earlier, this would raise an ArgumentError # but in v1.11.0.rc4 and later, this allows resources to be accessed over the network schema = Nokogiri::XML::Schema.new(trusted_schema, Nokogiri::XML::ParseOptions.new.nononet) ``` ### References - [This issue's public advisory](https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-vr8q-g5c7-m54m) - [Original Hackerone report (private)](https://hackerone.com/reports/747489) - [OWASP description of XXE attack](https://www.owasp.org/index.php/XML_External_Entity_(XXE)_Processing) - [OWASP description of SSRF attack](https://www.owasp.org/index.php/Server_Side_Request_Forgery) ### Credit This vulnerability was independently reported by @eric-therond and @gucki. The Nokogiri maintainers would like to thank [HackerOne](https://hackerone.com/nokogiri) for providing a secure, responsible mechanism for reporting, and for providing their fantastic service to us. CVE-2020-26247
GHSA-vr8q-g5c7-m54m
VCID-xvhw-5776-s3fr Nokogiri vulnerable to DoS while parsing XML documents Nokogiri gem has Denial of Service via infinite loop when parsing XML documents CVE-2013-6460
GHSA-62qp-3fxm-9wxf
OSV-101179
VCID-zrsc-vqxk-vkgx Nokogiri is vulnerable to XML External Entity (XXE) attack Nokogiri before 1.5.4 is vulnerable to XXE attacks. CVE-2012-6685
GHSA-6wj9-77wq-jq7p
OSV-90946

Date Actor Action Vulnerability Source VulnerableCode Version
2026-04-16T13:02:23.881119+00:00 Debian Importer Fixing VCID-8zyc-vw5k-wqaw https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T12:32:07.742152+00:00 Debian Importer Fixing VCID-vhyk-9tbb-quc3 https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T12:25:32.612653+00:00 Debian Importer Fixing VCID-eru7-uy2t-d3ef https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T11:02:43.491878+00:00 Debian Importer Fixing VCID-zrsc-vqxk-vkgx https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T10:33:22.848750+00:00 Debian Importer Fixing VCID-xvhw-5776-s3fr https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T10:09:25.822861+00:00 Debian Importer Fixing VCID-8geh-vfns-pfgs https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T09:49:30.537102+00:00 Debian Importer Fixing VCID-64c1-dzhs-u3gj https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T09:25:18.856312+00:00 Debian Importer Fixing VCID-qj6u-xryx-s3ev https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T09:21:16.453358+00:00 Debian Importer Fixing VCID-9wgc-swf9-z7hq https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T09:13:11.244006+00:00 Debian Importer Fixing VCID-gxbt-wyyf-1yg8 https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-13T08:57:47.387903+00:00 Debian Importer Fixing VCID-8zyc-vw5k-wqaw https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-13T08:35:03.936527+00:00 Debian Importer Fixing VCID-vhyk-9tbb-quc3 https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-13T08:30:17.901294+00:00 Debian Importer Fixing VCID-eru7-uy2t-d3ef https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-13T07:29:56.927922+00:00 Debian Importer Fixing VCID-zrsc-vqxk-vkgx https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-13T07:07:42.975119+00:00 Debian Importer Fixing VCID-xvhw-5776-s3fr https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-13T06:49:26.208084+00:00 Debian Importer Fixing VCID-8geh-vfns-pfgs https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-13T06:33:54.779945+00:00 Debian Importer Fixing VCID-64c1-dzhs-u3gj https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-11T18:17:16.469288+00:00 Debian Importer Fixing VCID-qj6u-xryx-s3ev https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-11T18:14:55.220786+00:00 Debian Importer Fixing VCID-9wgc-swf9-z7hq https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-11T18:10:04.416337+00:00 Debian Importer Fixing VCID-gxbt-wyyf-1yg8 https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-03T07:52:18.308674+00:00 Debian Importer Fixing VCID-8zyc-vw5k-wqaw https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:18.266974+00:00 Debian Importer Fixing VCID-qj6u-xryx-s3ev https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:18.223016+00:00 Debian Importer Fixing VCID-snr1-kaug-43aa https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:18.162497+00:00 Debian Importer Fixing VCID-9wgc-swf9-z7hq https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:18.110226+00:00 Debian Importer Fixing VCID-eru7-uy2t-d3ef https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:18.068844+00:00 Debian Importer Fixing VCID-8geh-vfns-pfgs https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:18.021700+00:00 Debian Importer Fixing VCID-vhyk-9tbb-quc3 https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:17.971670+00:00 Debian Importer Fixing VCID-64c1-dzhs-u3gj https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:17.928030+00:00 Debian Importer Fixing VCID-gxbt-wyyf-1yg8 https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:17.886292+00:00 Debian Importer Fixing VCID-xvhw-5776-s3fr https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:17.841494+00:00 Debian Importer Fixing VCID-zrsc-vqxk-vkgx https://security-tracker.debian.org/tracker/data/json 38.1.0