XML External Entity (XXE) Injection Affecting ruby-nokogiri package, versions <1.11.6-r0
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-ALPINE316-RUBYNOKOGIRI-2846280
- published 16 Jun 2021
- disclosed 30 Dec 2020
Introduced: 30 Dec 2020
CVE-2020-26247 Open this link in a new tabHow to fix?
Upgrade Alpine:3.16 ruby-nokogiri to version 1.11.6-r0 or higher.
NVD Description
Note: Versions mentioned in the description apply only to the upstream ruby-nokogiri package and not the ruby-nokogiri package as distributed by Alpine.
See How to fix? for Alpine:3.16 relevant fixed versions and status.
Nokogiri is a Rubygem providing HTML, XML, SAX, and Reader parsers with XPath and CSS selector support. In Nokogiri before version 1.11.0.rc4 there is an XXE vulnerability. 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. This is fixed in Nokogiri version 1.11.0.rc4.
References
- https://rubygems.org/gems/nokogiri
- https://github.com/sparklemotion/nokogiri/releases/tag/v1.11.0.rc4
- https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-vr8q-g5c7-m54m
- https://github.com/sparklemotion/nokogiri/commit/9c87439d9afa14a365ff13e73adc809cb2c3d97b
- https://hackerone.com/reports/747489
- https://lists.debian.org/debian-lts-announce/2021/06/msg00007.html
- https://security.gentoo.org/glsa/202208-29
- https://lists.debian.org/debian-lts-announce/2022/10/msg00018.html