{"id":"ALPINE-CVE-2022-23476","details":"Nokogiri is an open source XML and HTML library for the Ruby programming language. Nokogiri `1.13.8` and `1.13.9` fail to check the return value from `xmlTextReaderExpand` in the method `Nokogiri::XML::Reader#attribute_hash`. This can lead to a null pointer exception when invalid markup is being parsed. For applications using `XML::Reader` to parse untrusted inputs, this may potentially be a vector for a denial of service attack. Users are advised to upgrade to Nokogiri `\u003e= 1.13.10`. Users may be able to search their code for calls to either `XML::Reader#attributes` or `XML::Reader#attribute_hash` to determine if they are affected.","modified":"2026-11-03T07:30:18.805526111Z","published":"2022-12-08T04:15:09.043Z","upstream":["CVE-2022-23476"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2022-23476"}],"affected":[{"package":{"name":"ruby-nokogiri","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/ruby-nokogiri?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.10-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-23476.json"}},{"package":{"name":"ruby-nokogiri","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/ruby-nokogiri?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.10-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-23476.json"}},{"package":{"name":"ruby-nokogiri","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/ruby-nokogiri?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.10-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-23476.json"}},{"package":{"name":"ruby-nokogiri","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/ruby-nokogiri?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.10-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-23476.json"}},{"package":{"name":"ruby-nokogiri","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/ruby-nokogiri?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.10-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-23476.json"}},{"package":{"name":"ruby-nokogiri","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/ruby-nokogiri?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.10-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-23476.json"}},{"package":{"name":"ruby-nokogiri","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/ruby-nokogiri?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.10-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-23476.json"}},{"package":{"name":"ruby-nokogiri","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/ruby-nokogiri?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.10-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-23476.json"}},{"package":{"name":"ruby-nokogiri","ecosystem":"Alpine:v3.24","purl":"pkg:apk/alpine/ruby-nokogiri?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.10-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-23476.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}