Search for packages
purl | pkg:deb/debian/ruby-nokogiri@1.10.0%2Bdfsg1-2 |
Next non-vulnerable version | 1.13.10+dfsg-2 |
Latest non-vulnerable version | 1.13.10+dfsg-2 |
Risk | 4.5 |
Vulnerability | Summary | Fixed by |
---|---|---|
VCID-f5ku-zjud-g3gw
Aliases: CVE-2020-26247 GHSA-vr8q-g5c7-m54m |
Nokogiri::XML::Schema trusts input by default, exposing risk of an XXE vulnerability ### 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) ``` |
Affected by 2 other vulnerabilities. |
VCID-h58b-23z1-xkdz
Aliases: CVE-2022-24836 GHSA-crjr-9rc5-ghw8 |
Inefficient Regular Expression Complexity in Nokogiri ## Summary Nokogiri `< v1.13.4` contains an inefficient regular expression that is susceptible to excessive backtracking when attempting to detect encoding in HTML documents. ## Mitigation Upgrade to Nokogiri `>= 1.13.4`. |
Affected by 0 other vulnerabilities. |
VCID-zn3c-murn-p3hr
Aliases: CVE-2019-5477 GHSA-cr5j-953j-xw5p |
Rexical Command Injection Vulnerability A command injection vulnerability appears in code generated by the Rexical gem versions v1.0.6 and earlier. It allows commands to be executed in a subprocess by Ruby's `Kernel.open` method. |
Affected by 2 other vulnerabilities. |
Vulnerability | Summary | Aliases |
---|---|---|
This package is not known to fix vulnerabilities. |
Date | Actor | Action | Vulnerability | Source | VulnerableCode Version |
---|---|---|---|---|---|
2025-08-01T18:36:26.438958+00:00 | Debian Oval Importer | Affected by | VCID-h58b-23z1-xkdz | https://www.debian.org/security/oval/oval-definitions-bullseye.xml.bz2 | 37.0.0 |
2025-08-01T16:29:05.076927+00:00 | Debian Oval Importer | Affected by | VCID-zn3c-murn-p3hr | https://www.debian.org/security/oval/oval-definitions-bullseye.xml.bz2 | 37.0.0 |
2025-08-01T13:58:05.178198+00:00 | Debian Oval Importer | Affected by | VCID-f5ku-zjud-g3gw | https://www.debian.org/security/oval/oval-definitions-bullseye.xml.bz2 | 37.0.0 |